Page 1 of 1

Bottom Axis Label Issue

Posted: Fri Aug 19, 2016 11:31 am
by 9641422
Hi,

We are using .net tee chart version 2012. While plotting the chart, we are facing an issue related to labels and axis lines for bottom axis. Bottom label are showing with uneven distance as shown in snap shot below (1, 3, 5, 7, 9, 11, 14…….). But the desired output is that the bottom axis should appear with even distance spacing between each label (1, 3,5,7,9,11,13,15 ……). We are using Point Value property for bottom axis labels.
We are sending demo project that reproduce same problem.
abc.png
abc.png (90.83 KiB) Viewed 10213 times
Please suggest how we can resolve this issue.

Thanks
Supriya
Demo Project.rar
(129.66 KiB) Downloaded 822 times

Re: Bottom Axis Label Issue

Posted: Fri Aug 19, 2016 2:29 pm
by Christopher
Hello Supriya,

Thank you for the demo project - unfortunately it seems to be a C++ MFC project which is incompatible with the .NET Framework TeeChart.dll.

Could you please send us a .NET project (C# etc.) with which we can reproduce your issue?

Re: Bottom Axis Label Issue

Posted: Tue Aug 23, 2016 9:42 am
by 9641422
Hi,
As per your suggestion, we are sending .net demo project that reproduces the same problem. This will give you the clear picture of what the actual problem is. Please suggest how we can resolve this issue.

Thanks
Supriya

Re: Bottom Axis Label Issue

Posted: Tue Aug 23, 2016 2:45 pm
by Christopher
Hello Supriya,

I'm afraid to say that the only way to control the increment of the axes is when the axis labels are set to Auto, e.g.

Code: Select all

    private void InitializeChart()
    {
      Random rnd = new Random();
      tChart1.Aspect.View3D = false;
      Line series = (Line)tChart1.Series.Add(typeof(Line));
      for (int t = 1; t < 20; t++)
      {
        series.Add(t, rnd.Next(0, 10000));
      }
      series.Pointer.Visible = true;
      tChart1.Axes.Bottom.Increment = 2;
      tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.Auto;
    }