Page 1 of 1

ColorGrid horizontal cursor tool snap problem

Posted: Wed Mar 24, 2004 3:19 pm
by 9333098
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

Posted: Fri Mar 26, 2004 11:42 am
by Pep
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.