ChartSeriesType.Line with an extremely large amount of data

We have 3,000,000 points that we want to display in a ChartControl with a Type set to "ChartSeriesType.Line." The 3,000,000 points represents 72 hours worth of data where the PrimaryXAxis is a DateTime value and the PrimaryYAxis is a double value.

Knowing that multiple data points would fall into a single pixel on the screen based on the resolution and size of the chart, how should we setup a chart view that would depict a reasonable view into the 3,000,000 datapoints. We want the user to use the scrollbar to scroll the data left or right. Note, the vertical "Y" axis can be fixed i.e. no autosizing.


We are using version 4.4.0.51 with C# Windows Forms.

1 Reply

AD Administrator Syncfusion Team December 16, 2006 12:18 AM UTC

Hi Chad,

For getting ScrollBar in chart you have to set EnableXZooming, ZoomFactorX, ZoomPositionX properties. Please have a look at the below code which help you to set these properties.

this.chartControl1.EnableXZooming = true;
this.chartControl1.ZoomFactorX = .1; // Divide into 10 visible regions
this.chartControl1.ZoomPositionX = .4; // Move visible range to start at 40% of range

Please take a look into the attached sample for more information

Chart with ScrollBar sample

Let me know if this helps.

Thanks for your interest in Syncfusion products.

Regards,
Sureshbabu

Loader.
Up arrow icon