cancel
Showing results for 
Search instead for 
Did you mean: 

using multiple charts but one time control

Former Member
0 Kudos

I would like to place two charts on the same web page. One above the other. The top chart will have the time refresh control on it while the other should be controlled by the first chart. I have recently taken two charts and controlled each of them by using an iBrowser. How do I get the time features to sync up with the other chart?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In chart #2, turn off the "Show Time Control" checkbox in the display template.

In the update event from chart 1, set the startdate/enddate of chart 2 to the startdate/enddate of chart 1, and call the updateChart(true) method of chart 2.

Pseudocode (might be a few typos):

chart2.getQueryTemplate().setStartDate(chart1.getQueryTemplate().getStartDate());

chart2.getQueryTemplate().setEndDate(chart1.getQueryTemplate().getEndDate());

chart2.updateChart(true);

Best regards,

Rick

Former Member
0 Kudos

This is the syntax

document.iChart.getQueryObject().setStartDate(NEWVALUE);

Thanks for your help you at least guided me correctly.

Answers (0)