Non-linear labels for log scale?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jakob
Newbie
Newbie
Posts: 13
Joined: Fri Dec 05, 2003 5:00 am

Non-linear labels for log scale?

Post by Jakob » Fri Feb 27, 2004 8:54 am

Hi!

I have a bottom axes that is logarithmic. Therefor I would like the
labels on this axes to have "logarithmic increasing" values, such as:


0,125
0,25
0,5
1
2
4

How can I do this?

Regards
/Jakob

Jakob
Newbie
Newbie
Posts: 13
Joined: Fri Dec 05, 2003 5:00 am

Post by Jakob » Fri Feb 27, 2004 9:07 am

OK, I found this out, it was rather easy! :-)

Code: Select all

tChart1.Axes.Bottom.Labels.Items.Add(0.125, "0.125");
tChart1.Axes.Bottom.Labels.Items.Add(0.25, "0.25");
tChart1.Axes.Bottom.Labels.Items.Add(0.5, "0.5");
tChart1.Axes.Bottom.Labels.Items.Add(1, "1");
tChart1.Axes.Bottom.Labels.Items.Add(2, "2");
tChart1.Axes.Bottom.Labels.Items.Add(4, "4");
tChart1.Axes.Bottom.Labels.Items.Add(8, "8");
/Jakob

Post Reply