Problem with axis labels (line series with small values)
Posted: Sat Sep 30, 2006 9:42 am
Hi,
I'm having the following problem (shown in the screenshot):
As you can see the bottom label of the left axis should be indicating 0, but instead a very small value is displayed (looks at first sight like some rounding problem of some sort).
You can replicate the problem very easily. Just add a TeeChart to your form and disable 3D. Then add a line series to it and make sure that the pointers of that line are visible. Set the ValueFormat of the Left Axis to "E6".
Then simply add a button to your form and insert the following event handler behind it:
Simply run the application. Every time the button will be clicked, new random data will be generated for the line. It will not take you many times, pressing this button, to replicate the problem I've shown in the screenshot. It sometimes depends on the size of the TeeChart/Form, so maybe you have to play a little bit with that as well.
I can only replicate this problem when the pointers are visible, it seems not to manifest itself when they are not visible. So I've got the impression that it has got something to do with that.
I'm using the latest stable build v2.0.2456.16162.
Regards
I'm having the following problem (shown in the screenshot):
As you can see the bottom label of the left axis should be indicating 0, but instead a very small value is displayed (looks at first sight like some rounding problem of some sort).
You can replicate the problem very easily. Just add a TeeChart to your form and disable 3D. Then add a line series to it and make sure that the pointers of that line are visible. Set the ValueFormat of the Left Axis to "E6".
Then simply add a button to your form and insert the following event handler behind it:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
Random rnd = new Random();
line1.Clear();
for (int pointIndex = 0; pointIndex < 25; pointIndex++)
{
line1.Add(rnd.NextDouble() * 10, rnd.NextDouble() * 256 / 1e6);
}
}
I can only replicate this problem when the pointers are visible, it seems not to manifest itself when they are not visible. So I've got the impression that it has got something to do with that.
I'm using the latest stable build v2.0.2456.16162.
Regards