Dear Alexander,
I found a bug in TLineSeries that was introduced in:
Revision: 25921
Author: ask
Date: 17.06.46, sabato 5 giugno 2010
Message:
TAChart: Pre-filter points outside of the current extent in TLineSeries.Draw
----
Modified : /trunk/components/tachart/tasources.pas
Modified : /trunk/components/tachart/taseries.pas
The code responsible of the bug is this:
// Find an interval of x-values intersecting the CurrentExtent.
// Requires monotonic (but not necessarily increasing) axis
transformation.
lb := 0;
ub := Count - 1;
if LineType <> ltFromOrigin then begin
Source.FindBounds(GraphToAxisX(ext.a.X), GraphToAxisX(ext.b.X), lb,
ub);
lb := Max(lb - 1, 0);
ub := Min(ub + 1, Count - 1);
end;
SetLength(gp, ub - lb + 1);
With this code not every point is drawn (see attached image where you
can see the marks but not the corresponding points).
Andrea
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus