Thanks asgallant for your help! Is it possible to keep highlighting the points and just turn off the text bubbles? Setting enableInteractivity = false turns everything off.
Cheers, -Sean On Monday, August 12, 2013 8:16:54 PM UTC-7, asgallant wrote: > > You can turn off the tooltips by setting the "enableInteractivity" option > to false (like you had on your second chart). > > Selecting a point twice bombs the page because when you click a point > twice, you are actually selecting it with the first click and deselecting > it with the second, so there are no selected elements. When you try to > access the first element of an empty array, like here: > > var imgNum = data.getFormattedValue(selection[0].row, 0); > > it bombs the script. Doing a simple test on the length of the selection > avoids the problem; see http://jsfiddle.net/asgallant/9MDws/6/ > > On Monday, August 12, 2013 8:42:55 PM UTC-4, Sean Michael wrote: >> >> Hi, >> >> I am trying to update images by selecting points from a scatter plot. I'd >> like this to happen on the same page so I don't have to constantly refresh >> the page or switch tabs. I've gotten it to work with <canvas> and >> .drawImage() but it doesn't seem like the best solution. The images do not >> redraw consistently and I'm having to click between multiple points before >> it updates the image. I'm fairly new to javascript so was wondering if >> there were better solutions / other ways for implementing this. >> >> Since I only use the scatter plots for point section, I would also like >> to turn off the bubble text. It gets activated on mouseover and usually >> gets in the way of clicking on points. Is it possible to turn this feature >> off? >> >> Also, if I click on a point twice, the page bombs and have to refresh. Is >> there a way to fix this too? >> >> Here is the code that I'm using: http://jsfiddle.net/isasquatch/9MDws/5/ >> >> The images are stored locally so I'm using fillRect to draw a dummy >> image. Circles get plotted on top which show the xy position of features in >> the image. >> >> Thanks! >> -Sean >> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
