-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a property value
to expose the data specified in the selection
property.
#155
Comments
I'm not sure what you mean. You can see exactly what you want (I believe) in the google-chart demo page. See the "area selection" demo. Or did you mean something else? |
I meant like if you click a slice of the pie like in the "area selection" instead of getting the row, I would be able to get the actual data for the slice (i.e. Jan, 31(17.1%)). I ended up finding the actual chart within the raw chart data and being able to get the data back. Inside my Polymer element: Is this the proper way to do this? |
I see your predicament. You should not be referencing those compiled properties ( let chart = e.currentTarget;
chart.rows[chart.selection[0].row]; e.g. (using the let chart = this.$.myChart;
let value = chart.data.getValue(chart.selection[0].row, 0); Selection is meant to mirror the selection property of the chart, however, perhaps exposing the actual value via value may be a good idea... My immediate thought about that is that there is probably a performance issue or otherwise a problem with different chart type's selection values... But I can take a look. |
value
to expose the data specified in the selection
property.
I am listening for the google-chart-select event, but it is passing back the raw chart object. Is there any way to grab the data from the selection?
The text was updated successfully, but these errors were encountered: