ColorGrid horizontal cursor tool snap problem
Posted: 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
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