Canvas JS graph overrides and removes my content

CanvasJS replaces the contents of the container element, so any markup you put inside will be removed. That’s actually quite common behaviour for libraries like this. Can I ask why you need to put your dropdown within the container, rather than just positioning it with CSS?