We have opened a bug for this issue and will update the group once it is fixed. Thanks for pointing this out.
ChartMan On Sun, Aug 30, 2009 at 2:39 AM, yasmeen <[email protected]> wrote: > > Hi, > > I recently created a scatter plot, using the visualization api, and I > was getting the incorrect row index when selecting a plot from the > graph. After investigating this, I realised that the incorrect index > value was due to missing (Null) data values. For example, using the > following data, it can be seen that there is a value missing for point > 1: > > data.setValue( 0, 0, -1.22145811867 ); > data.setValue( 0, 1, -0.844807630252 ); > > data.setValue( 1, 0, -0.114704030661 ); > > data.setValue( 2, 0, -1.28362947541 ); > data.setValue( 2, 1, -0.177596736358 ); > > The scatter plot (and other graph types) deal with this by simply not > plotting anything for point 1. However, if I now use the getSelection > () method on the select event of the scatterplot and click on point 2, > the row index returned is '1', whereas I would expect '2'. I assume, > this means that point 1 must not be in the data table created by the > visualization. This was something I was not expecting, I have > rectified the problem by filtering out incomplete values within my own > code before constructing the visualization. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en -~----------~----~----~----~------~----~------~--~---
