![]() | Steema Issues DatabaseNote: 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. |
| Summary: | TChartGrid to show Labels and Colors columns for each series | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Other Components | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 23.171221 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=16842 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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;