Explorer across multiple charts...

24 views
Skip to first unread message

Chip Davis

unread,
Jul 28, 2016, 2:26:51 PM7/28/16
to Google Visualization API
Can a redraw using explorer on one chart drive a redraw on other charts in a dashboard?  

Daniel LaLiberte

unread,
Jul 28, 2016, 3:02:43 PM7/28/16
to Google Visualization API
Chip,

There is no built-in support to synchronize exploration of different charts.  In fact, we need to trigger an event when the explorer view changes in a chart, so you could handle the synchronization yourself.  So currently, you would have to watch the chart with a periodic setInterval to see when it changes.


On Thu, Jul 28, 2016 at 2:26 PM, Chip Davis <chip....@houven.com> wrote:
Can a redraw using explorer on one chart drive a redraw on other charts in a dashboard?  

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/7309ae5e-d3a3-4e71-8542-4b1f999d5845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Chip Davis

unread,
Jul 28, 2016, 4:10:32 PM7/28/16
to Google Visualization API
First of all...thank you for the response.  Are you telling me that I need to do something like this:

create something that listens to chart A (use setInterval).
listener prompts the trigger.
trigger uses getSelection (chart A) and setSelection (chart B)
redraw Chart B.

thx
cld



Daniel LaLiberte

unread,
Jul 28, 2016, 4:20:00 PM7/28/16
to Google Visualization API
Something like that, yes.  Use setInterval to periodically get the viewWindow from each chart to see if either has changed, and if so, then set the viewWindow for the other chart accordingly.  To get the viewWindow, you will use the getBoundingBox() method.

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.

matthew

unread,
Feb 22, 2017, 6:31:45 PM2/22/17
to Google Visualization API
Is there a plan as to when this new event might be added?   I want to load more data into the chart when the user scrolls past the end of the chart....   Unless there is another way to do this?


On Thursday, 28 July 2016 15:02:43 UTC-4, Daniel LaLiberte wrote:
Chip,

There is no built-in support to synchronize exploration of different charts.  In fact, we need to trigger an event when the explorer view changes in a chart, so you could handle the synchronization yourself.  So currently, you would have to watch the chart with a periodic setInterval to see when it changes.

On Thu, Jul 28, 2016 at 2:26 PM, Chip Davis <chip....@houven.com> wrote:
Can a redraw using explorer on one chart drive a redraw on other charts in a dashboard?  

--
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.



--
Reply all
Reply to author
Forward
0 new messages