Open arnaud-42 opened 7 years ago
Hi there,
Sorry for not getting back earlier.
I suppose you could do that with chart's dataUpdated
event:
"listeners": [{
"event": "dataUpdated",
"method": function(e) {
e.chart.zoomToIndex(e.chart.dataProvider.length - 90, e.chart.dataProvider.length - 1);
}
}]
I tried the code above and it does not work.
@jomayan Can you post your whole code?
It doesn't work because there is no "es" in zoomToIndexes. Try this:
e.chart.zoomToIndexes(e.chart.dataProvider.length - 90, e.chart.dataProvider.length - 1);
I try to use Zoomtoindex for my charts. I use dataloader with some json data.
I want to do something like this : zoomToIndex(chart.daraLoader.length -90 , chart.daraLoader.length -1);
But it doesn't work ... how can I have the length of the json data loaded with dataloader ?
Thanks