How Do I Change X-Axis Labels to my own Customized Values?
Posted: Tue Mar 15, 2011 1:31 pm
Hi Support
Ive drawn a line chart and it looks very nice. The x-axis goes from 0 to 20 in steps of 1. However Id like to be able to change each of the x-axis labels.
Im sure this is simple but I cant work out how to do it? Can you explain?
For your information Ive tried
n = 0;
while(n < numberOfPoints)
{
myChart.Axes.Bottom.Labels.Items[n].Text = "my label";
++n;
}
but this doesn't work for n>=0. The collection has zero size.
We are using TeeChart for Net v3 and programming in C#.NET
Ive drawn a line chart and it looks very nice. The x-axis goes from 0 to 20 in steps of 1. However Id like to be able to change each of the x-axis labels.
Im sure this is simple but I cant work out how to do it? Can you explain?
For your information Ive tried
n = 0;
while(n < numberOfPoints)
{
myChart.Axes.Bottom.Labels.Items[n].Text = "my label";
++n;
}
but this doesn't work for n>=0. The collection has zero size.
We are using TeeChart for Net v3 and programming in C#.NET