Fixing some problems with SVG elements selection

Some problems with the cursor when we had two charts in the same page. It was because the way I was selecting the SVG elements