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 - Axis plotting text labels for multiple series
Summary: Axis plotting text labels for multiple series
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Axes (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://stackoverflow.com/questions/34...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 03:35 EST by narcís calvet
Modified: 2016-04-29 10:13 EDT (History)
1 user (show)

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


Attachments
desired behaviour example (68.68 KB, image/jpeg)
2015-12-02 03:35 EST, narcís calvet
Details

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