Search code examples
c#.netteechart

Teechart linechart ,if add string , bottom axis label will change ,C#


  Steema.TeeChart.Styles.Line lin = new Steema.TeeChart.Styles.Line();   
  lin.Add(20, 0.017,"OA");
  lin.Marks.Visible = true;
  chart.Series.Add(lin);
  chart.Axes.Bottom.Minimum = 10;
  chart.Axes.Bottom.Maximum = 40;

will show A

but the result I want is picture B B

When I add text,I want bottom axis label will not change.

How to do this? Thank you.


Solution

  • You can set bottom axis labels to display values like this:

      tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;