Duplicate bottom label axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
user2016
Newbie
Newbie
Posts: 6
Joined: Wed Mar 02, 2016 12:00 am

Duplicate bottom label axis

Post by user2016 » Mon Oct 31, 2016 8:57 am

hi there, how can I prevent bottom label axis. please refer to image.
Attachments
TeeChart-Duplicate.png
TeeChart-Duplicate.png (7.92 KiB) Viewed 5403 times

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

Re: Duplicate bottom label axis

Post by Christopher » Wed Nov 02, 2016 10:56 am

Hello!

You should be able to use the Axis.Increment value, for example:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;

      Points series = new Points(tChart1.Chart);
      DateTime today = DateTime.Today;
      Random rnd = new Random();

      for (int i = 0; i < 24; i++)
      {
        series.Add(today, rnd.Next(100));
        today = today.AddHours(2);
      }

      tChart1.Axes.Bottom.Labels.Angle = 90;
      tChart1.Axes.Bottom.Increment = Utils.DateTimeStep[(int)DateTimeSteps.OneDay];
    }
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