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 - PointValue AxisLabels' Style not evenly distributing labels along axis
Summary: PointValue AxisLabels' Style not evenly distributing labels along axis
Status: CONFIRMED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Axes (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-23 04:16 EST by christopher ireland
Modified: 2017-02-23 04:16 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.