Page 1 of 1

Duplicate bottom label axis

Posted: Mon Oct 31, 2016 8:57 am
by 16077780
hi there, how can I prevent bottom label axis. please refer to image.

Re: Duplicate bottom label axis

Posted: Wed Nov 02, 2016 10:56 am
by Christopher
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];
    }