Initial zoom

Hello.

I´ve got a chart with about 1000 datapoints and 16 series.
Using zoom one can have a good look at the data, without it´s a mess ;)

How can I set the inital zoom of a chart.
How can I set the zoom (range?) after relaoding data when a user changed the dateTime range?

Thanks for your help.

7 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team October 19, 2020 08:56 AM UTC

Hi Florian, 

We have analysed your query. From that, we would like to let you know that, we have lazy loading support to achieve your requirement. This will load the chart based on provided points length for numeric axis and start, end range for date time axis. Please check with the below online demo link.  


If provided solution doesn’t meet your requirement, please revert us. 

Regards, 
Durga G 



FM Florian Mihalits October 20, 2020 04:07 PM UTC

Hello.

I know about lazy loading.
The problem with lazy loading is, that I could not find a way to combine lazy loading and zoom.
Is there a way to do so?
Or at least, is there a way to combine lazy loading with a "pan" function?

And how do you use lazy loading with a remote resource?

All the best, 
Florian


DG Durga Gopalakrishnan Syncfusion Team October 21, 2020 04:06 PM UTC

Hi Florian, 

We suggest you to specify zoom factor and zoom position to display zoomed chart. You can calculate the zoomFactor by number of points to be displayed/total number of points and zoomPosition by pixel position in chart/ total width of chart. 

primaryXAxis: { 
    zoomFactor: 0.2, // number of data to be displayed/ total number of data(200/1000) 
    zoomPosition: 0.4, //position to zoom in pixel/ total width of chart(400/1000) 
}, 

 
 


Kindly revert us, if you have any concerns. 

Regards, 
Durga G 


Marked as answer

FM Florian Mihalits October 21, 2020 04:24 PM UTC

Works pretty well, thanks.
The only thing: the scrollbar isn´t being shown on the x axis.

All the best, 
Florian


DG Durga Gopalakrishnan Syncfusion Team October 22, 2020 10:43 AM UTC

Hi Florian, 
 
Thanks for an update. Please specify isZoomed inner property as true in chart load event to display scrollbar. We have modified sample and attached for your reference. 
 
load: (args: ILoadedEventArgs) => { 
   args.chart.zoomModule.isZoomed = true; 
} 
 
 
 
 
Kindly revert us, if you have any concerns. 
 
Regards, 
Durga G 



FM Florian Mihalits October 22, 2020 12:10 PM UTC

Perfect!!

Thanks a lot.

All the best, 
Florian


DG Durga Gopalakrishnan Syncfusion Team October 22, 2020 03:55 PM UTC

Hi Florian, 
  
Most welcome. Please get back to us if you need any further assistance. 
  
Regards, 
Durga G 


Loader.
Up arrow icon