waynehelpard
Posts: 1
Joined: Thu Sep 08, 2011 4:34 pm

Update Axis tickInterval Manually??

I have a dashboard that renders a few charts. Each one is refreshes on a timer. I only instantiate the chart once, and use setData() after that to update the data. However, one of my charts returns datetime data and I want to update the xAxis tickInterval from 10 minutes (10 * 60 * 1000) to 30 minutes (30 * 60 * 1000) based on a parameter.

The only part I need help with is setting the option manually. I can't use the global options, because there are multiple charts rendered on the page. I tried the following (remember the 'Chart' object is an actual instantiated HighCharts object already):

Chart.xAxis[0].tickInterval = 30 * 60 * 1000;
// some stuff here to set the new data
...
Chart.redraw();

There is no error, but the actual tick interval never updates (or the chart ignores it when it redraws).

Any ideas? I just can't figure out what to do.
hfrntt
Posts: 6393
Joined: Mon Aug 30, 2010 8:41 am
Contact: Website

Re: Update Axis tickInterval Manually??

It's not possible to manually change tickInterval in a runtime.
Slawek Kolodziej
Highcharts support team

Return to “Highcharts Usage”