Bottom Axis Label Issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Bottom Axis Label Issue

Post by Amol » Fri Aug 19, 2016 11:31 am

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 10211 times
Please suggest how we can resolve this issue.

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

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Bottom Axis Label Issue

Post by Christopher » Fri Aug 19, 2016 2:29 pm

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?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Re: Bottom Axis Label Issue

Post by Amol » Tue Aug 23, 2016 9:42 am

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
Attachments
WindowsFormsApplication1.rar
Demo Project
(14.44 KiB) Downloaded 793 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Bottom Axis Label Issue

Post by Christopher » Tue Aug 23, 2016 2:45 pm

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;
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply