DrawAllPoints false does not plot narrow data spikes
Posted: Fri Dec 17, 2004 2:19 pm
Setting DrawAllPoints false produces plots that often do not display data points that are narrow spikes in FastLineSeries.
For example, generate 20,000 points of random values as in
Y[0]:=Random(10000);
for t := 1 to Num-1 do Y[t]:=Y[t-1]+Random(101)-50;
which is the data function found in the "Real-time charting in TeeChart VCL" at
http://www.teechart.net/support/modules ... icle&sid=6
which also describes the behavior of the DrawAlPoints property.
Then set some single points to values far outside neighboring values such as :
y[123] := 0;
y[1234] := 0;
y[12345] := 0;
These 0 values are always displayed when DrawAllPoints is True. But they are only occasionally there when it is False.
Addionally, if the Chart Alignment is set to Client so that the chart resizes when the form is resized, then the appearance of these 0 point spikes with DrawAllPoints as false depends on the size of the chart. They will appear and disappear as the form and chart is resized.
These 0 points can be made to appear by increasing the width of the data region of 0 valued points, by for example:
for i := 1 to width do y[12345+i] := 0;
Steve
For example, generate 20,000 points of random values as in
Y[0]:=Random(10000);
for t := 1 to Num-1 do Y[t]:=Y[t-1]+Random(101)-50;
which is the data function found in the "Real-time charting in TeeChart VCL" at
http://www.teechart.net/support/modules ... icle&sid=6
which also describes the behavior of the DrawAlPoints property.
Then set some single points to values far outside neighboring values such as :
y[123] := 0;
y[1234] := 0;
y[12345] := 0;
These 0 values are always displayed when DrawAllPoints is True. But they are only occasionally there when it is False.
Addionally, if the Chart Alignment is set to Client so that the chart resizes when the form is resized, then the appearance of these 0 point spikes with DrawAllPoints as false depends on the size of the chart. They will appear and disappear as the form and chart is resized.
These 0 points can be made to appear by increasing the width of the data region of 0 valued points, by for example:
for i := 1 to width do y[12345+i] := 0;
Steve