Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1801

Summary: PointValue AxisLabels' Style not evenly distributing labels along axis
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: AxesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2017-02-23 04:16:37 EST
Using this code:

    private void InitializeChart()
    {
      Line series = new Line(tChart1.Chart);

      DateTime now = DateTime.Now;
      Random rnd = new Random();

      for (int i = 0; i < 50; i++)
      {
        series.Add(now, rnd.Next(1000));
        now = now.AddDays(7);
      }


      tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yy hh:mm:ss";
      tChart1.Axes.Bottom.Labels.Angle = 90;
      tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.PointValue;
    }

we can see large gaps between the labels which should be filled with further labels. Change the Style to Auto to see the difference.