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 2005 - TChartGrid to show Labels and Colors columns for each series
Summary: TChartGrid to show Labels and Colors columns for each series
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Other Components (show other bugs)
Version: 23.171221
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 04:40 EST by yeray alonso
Modified: 2018-03-02 04:40 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 yeray alonso 2018-03-02 04:40:44 EST
As the customer shows in the image, when you have several series in a chart, and each series has a different set of labels, you may want the TChartGrid to show the labels of all the series, not only the labels from the first series.

The same happens with the Colors.

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
const nItems = 5;
begin
  Chart1.View3D:=False;
  Chart1.Legend.Hide;

  Chart1.AddSeries(TBarSeries).FillSampleValues(nItems);
  Chart1.AddSeries(TBarSeries).FillSampleValues(nItems);

  for i:=0 to nItems-1 do
  begin
    Chart1[0].Labels[i]:='Series 0, Item ' + IntToStr(i);
    Chart1[1].Labels[i]:='Series 1, Item ' + IntToStr(i);
  end;

  Chart1.Align:=alClient;
  ChartGrid1.Align:=alBottom;

  ChartGrid1.Chart:=Chart1;

  ChartGrid1.ShowXValues:=cgsYes;
  ChartGrid1.ShowColors:=True;
end;