I have a problem with the navigator. I have in place a datepicker where the chart data reflects what dates you have picked. My problem is when I select a time range that is bigger then was selected before, the navigator does not zoom out to that period but stays in the old period. The way I set the data is I fetch new data with the new timestamps and use setData on my series, this adds the data correctly but it won't zoom out. I tried disabling the navigator and the chart will then correctly zoom out to the time period I selected
I also tried manually changing the xAxis of the navigator but it always came out distorted and the extremes value I sent in with setExtremes was not the same as I got from using getExtremes on the same axis.
Example:
Code: Select all
setExtremes(1345190400000, 1345075200000)
Code: Select all
dataMax: 1345190400000
dataMin: 1345075200000
max: 1345141800000
min: 1345123800000
userMax: 1345075200000
userMin: 1345190400000
EDIT: I found the solution to the problem, I was just setting the extremes of the wrong xAxis!