ColorGrid horizontal cursor tool snap problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

ColorGrid horizontal cursor tool snap problem

Post by SteveP » Wed Mar 24, 2004 3:19 pm

If you do the following on a 2D ColorGrid with TChart 7:

for x := 1 to 20 do
for z := 1 to 30 do
series1.AddXYZ(x, random(13), z);

you end up with horizontal axis max= 20 and vertical axis max = 30. So the horizontal cursor tool should be movable on the vertical axis up to an axis value of 30. But it is instead limited to 12 or 13 due to the value of
"random(13)" which is the maximum data value of the entire grid, not the
maximum vertical axis value. It appears that the snap function is
referencing the max data value (the "y" in AddXYZ(x, y, z) ) and not the max vertical axis value (the "z" in AddXYZ(x, y, z) ).

Just posting this here in hopes it can be fixed in the maintence release (or point me to where in the source code the problem is).

Steve

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Mar 26, 2004 11:42 am

Hi Steve,

yes, you're correct, it's a bug, I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.
Thanks for the report.

Post Reply