Page 1 of 1

how to modify label values in teechart

Posted: Thu Dec 04, 2014 4:19 pm
by 14051412
Hi Forum.

I have to questions:
1) In this moment im using am app to show some data, through the teechart.

Im using two axis, X and Y.
In the Y-axis, i'm using logarithmic values, with values from 0 to 5000.

The point is that the label values of the Y-axis only are 0 and 1000.

So the question is, how can I modified the Y-axis values to show intermediate values?

2) Working with the same app, the values of the X-axis are from 0 to 1.3.
Why, sometimes, in the X-axis only appear the values 0 and 1? and not the intermediate values 0.2 0.4 0.6 ....
I had set the ticks and every available option in the tools, but this values sometimes appear, and sometimes not.

Even so, when I export the teechart image to eps, I only get the values 0 and 1 in the X-axis, and later I have to modify the eps file, to include the remaining values, and this is too tedious.

Thanks

PD: I'm using Teechart for .Net, v3.

Re: how to modify label values in teechart

Posted: Fri Dec 05, 2014 10:01 am
by narcis
Hi lolo,
lolo wrote: 1) In this moment im using am app to show some data, through the teechart.

Im using two axis, X and Y.
In the Y-axis, i'm using logarithmic values, with values from 0 to 5000.

The point is that the label values of the Y-axis only are 0 and 1000.

So the question is, how can I modified the Y-axis values to show intermediate values?
Yes, you can change axis Increment property. For more information on axis settings please read tutorial 4. Tutorials can be found at TeeChart's program group. For example:

Code: Select all

      tChart1.Axes.Left.Logarithmic = true;
      tChart1.Axes.Left.Increment = 100;
lolo wrote: 2) Working with the same app, the values of the X-axis are from 0 to 1.3.
Why, sometimes, in the X-axis only appear the values 0 and 1? and not the intermediate values 0.2 0.4 0.6 ....
I had set the ticks and every available option in the tools, but this values sometimes appear, and sometimes not.
This depends on the size of the chart. TeeChart automatically plots as much labels as can be fitted into the axes provided they don't overlap. If Increment is set to automatic, the bigger the chart is, the lower increment you'll get and the more labels will be plotted.
lolo wrote: Even so, when I export the teechart image to eps, I only get the values 0 and 1 in the X-axis, and later I have to modify the eps file, to include the remaining values, and this is too tedious.
You can set the size of the exported image before saving the file, for example:

Code: Select all

      tChart1.Export.Image.EPS.Width = 800;
      tChart1.Export.Image.EPS.Height = 600;