Annotation Chart - Change Rows When Date Range Is Changed

18 views
Skip to first unread message

Felix Palabrica

unread,
Oct 11, 2016, 11:43:44 PM10/11/16
to Google Visualization API
Good day. I have a pretty complicated specification that I'm trying to implement for my annotation chart. Basically I have rows of data that are grouped either per hour or per day. The daily data is an average of the hourly data for each given day. What I would like to know is if it's possible to refresh the row of the annotation chart when the user adjusts the date range slider or click the zoom button (adjusting the date range in turn) such that:

If Date Range > 3 Days
Show hourly data
Else
Show daily data

Is this possible to implement? Thank you very much. 
 
 
 

Daniel LaLiberte

unread,
Oct 17, 2016, 11:51:43 AM10/17/16
to Google Visualization API
Hi Felix,

The way to implement this is by detecting the range change event.  Then you could redraw the chart with your corresponding data set.  I'm not sure how well this will work, however.  You might need to redraw in a timeout, to avoid conflicts.  I am curious to see what happens if you try this.

--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/613da7a3-d40e-4040-a9e4-fc3e97c6d531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages