SampleStep

SampleStep feature allows you to specify the Step value in the loop that draws a profile. If SampleStep is 2, every other data point is plotted for the specific profile.  Increasing the SampleStep property decreases the refresh time by not having to plot every profile value.  For example, increase SampleStep when Profile(x).NumSamples is large and when displaying every value is not important.  When the user zooms in deep enough, change the Profile(x).SampleStep value to 1 when the ZoomInSelected event fires.

See examples 1, 2 and 3 below.  Note: All graphs below display the same 100,000 data points.

Example 1 - SampleStep = 10, ZoomOutAll

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
With XYChartNETCtl1
   .Profile(0).SampleStep = 10
End With

[C#]
XYChartNETCtl1.get_Profile(0).SampleStep = 10;

[C++]
XYChartNETCtl1->get_Profile(0)->SampleStep = 10;

Example 2 - SampleStep = 10, ZoomIn

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
With XYChartNETCtl1
   .Profile(0).SampleStep = 10
End With

[C#]
XYChartNETCtl1.get_Profile(0).SampleStep = 10;

[C++]
XYChartNETCtl1->get_Profile(0)->SampleStep = 10;

Example 3 - SampleStep = 1, ZoomIn Further

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
With XYChartNETCtl1
   .Profile(0).SampleStep = 1
End With

[C#]
XYChartNETCtl1.get_Profile(0).SampleStep = 1;

[C++]
XYChartNETCtl1->get_Profile(0)->SampleStep = 1;

See Also

Profile