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 1379

Summary: Axis plotting text labels for multiple series
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: AxesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: enhancement CC: chris
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://stackoverflow.com/questions/34010773/how-to-display-all-label-name-in-bottom-axis-when-have-multiple-series
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: desired behaviour example

Description narcís calvet 2015-12-02 03:35:54 EST
Created attachment 528 [details]
desired behaviour example

The code snippet below only plots text labels for the first series as shown on the image at http://i.stack.imgur.com/bvBBV.png

      tChart1.Aspect.View3D = false;

      const int numPoints = 10;

      for (int i = 0; i < 3; i++)
      {
        Steema.TeeChart.Styles.Line lineSeries = new Steema.TeeChart.Styles.Line(tChart1.Chart);

        for (int j = 0; j < numPoints; j++)
        {
          lineSeries.Add((numPoints * i) + j, j, "point " + j.ToString());
        }
      }

TeeChart VCL plots text labels in the axis for all series in the chart as shown in the attached image. Delphi code:

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
const NumPoints = 10;
var
  i, j    : Integer;
  Series  : TLineSeries;
begin
  Chart1.View3D:=False;

  for i:=0 to 2 do
  begin
    Series:=TLineSeries.Create(Self);
    Chart1.AddSeries(Series);

    for j:=0 to NumPoints - 1 do
      Series.AddXY((NumPoints * i) + j, j, 'text ' + IntToStr(j));
  end;
end;

It would be interesting having similar functionality in .NET