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 3088 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 |
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
Does the TLegendPaletteTool presented above exist in the javascript library?
I would like to inquire about how to implement the above example using Javascript.
I would like to inquire about how to implement the above example using Javascript.
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
Hello,
Oups sorry for the confusion! I'll take a look at the js library.
Oups sorry for the confusion! I'll take a look at the js library.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
Hello,
I see you asked something very similar a few months ago.
https://www.steema.com/support/viewtopi ... 18&t=18141
Weren't you able to make it work?
The only difference I see is in the alignment of the legend. Am I missing anything else?
I see you asked something very similar a few months ago.
https://www.steema.com/support/viewtopi ... 18&t=18141
Weren't you able to make it work?
The only difference I see is in the alignment of the legend. Am I missing anything else?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
https://www.steema.com/support/viewtopi ... 18&t=18141
I would like to contact you because the legend does not display the way
I want even if I change the position of the legend to "bottom" in the source link above.
I would like to contact you because the legend does not display the way
I want even if I change the position of the legend to "bottom" in the source link above.
- Attachments
-
- 주석 2024-11-04 084543.png (14.83 KiB) Viewed 1131 times
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
Hello,
You could try adding a second chart at the bottom and use it to draw the legend. Ie:
https://jsfiddle.net/norike82/7aj5p9of/
You could try adding a second chart at the bottom and use it to draw the legend. Ie:
https://jsfiddle.net/norike82/7aj5p9of/
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: I would like to inquire about how to apply a legend to a ColorGrid chart.
Thank you for suggesting a solution.Yeray wrote: ↑Mon Nov 04, 2024 9:39 amHello,
You could try adding a second chart at the bottom and use it to draw the legend. Ie:
https://jsfiddle.net/norike82/7aj5p9of/
colorGridLegend.png