I would like to inquire about how to apply a legend to a ColorGrid chart as shown in the attached image.
thank you.
I would like to inquire about how to apply a legend to a ColorGrid chart.
I would like to inquire about how to apply a legend to a ColorGrid chart.
- Attachments
-
- 주석 2024-10-28 134007.png (25.94 KiB) Viewed 221 times
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
Hello,
Have you tried the
Here a simple example:
Have you tried the
TLegendPaletteTool
?Here a simple example:
Code: Select all
uses Chart, TeeSurfa, TeeLegendPalette;
var Chart1: TChart;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1:=TChart.Create(Self);
with Chart1 do
begin
Parent:=Self;
Align:=alClient;
Color:=clWhite;
Gradient.Visible:=False;
Walls.Back.Color:=clWhite;
Walls.Back.Gradient.Visible:=False;
Legend.Hide;
View3D:=False;
MarginBottom:=10;
AddSeries(TColorGridSeries).FillSampleValues;
Draw;
with TLegendPaletteTool(Tools.Add(TLegendPaletteTool)) do
begin
Series:=Chart1[0];
Vertical:=False;
Width:=Chart1.Width;
Height:=40;
Top:=Chart1.Axes.Bottom.PosAxis+25;
Axis:=laDefault;
end;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |