Page 1 of 1

Non-linear labels for log scale?

Posted: Fri Feb 27, 2004 8:54 am
by 8123134
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

Posted: Fri Feb 27, 2004 9:07 am
by 8123134
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