how to modify label values in teechart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lolo
Newbie
Newbie
Posts: 11
Joined: Thu Jan 08, 2009 12:00 am

how to modify label values in teechart

Post by lolo » Thu Dec 04, 2014 4:19 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: how to modify label values in teechart

Post by Narcís » Fri Dec 05, 2014 10:01 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply