accessing the explorer's range for dynamically loading data into the chart.

28 views
Skip to first unread message

Adam Farmer

unread,
Jan 22, 2018, 3:05:16 PM1/22/18
to Google Visualization API
Is there a way to access the range of a graph after using explorer to zoom in and out. When user's zoom out enough I'd like to dynamically load new data based on those new ranges. Is this a possible with the current explorer feature? Thank you for your time!

Sean Larson

unread,
Jan 22, 2018, 9:36:44 PM1/22/18
to Google Visualization API
How large is the data? 

One way to go outside the API would be to add a "+" and "-" button like in google maps. When they click +, add rows and redraw, when they minus, remove rows and redraw. Make sure to sort your data, and then decide how many rows to do each step? Or decide the value range to increment each step and only add rows that fall in the new range?

But to do this, it must mean you already have the data outside the current range or need to query synchronously, not sure if that is any less efficient than just loading it all to begin with? 

Adam Farmer

unread,
Jan 23, 2018, 11:12:49 AM1/23/18
to Google Visualization API
The data sets vary, but they can be quite large. We already have buttons that select certain time frames to pull data from. We would like to change that range dynamically with the explorer feature though. As a user uses their mouse wheel to zoom in and out of the graph, we'd like to change the range according to that. 
Reply all
Reply to author
Forward
0 new messages