How should a lineseries with no markers be displayed in the legend? I get markers when they are visible in the chart. However I would like a short line with the same color as the line in the chart when no markers are displayed. Ideal would be to have both lines and markers shown in the legend if both are visible in the chart. Suggestions?
Jim
lineseries and legend
Re: lineseries and legend
Hello Jim,
The legend shows line+pointer or only the line when applies for me here: Am I misunderstanding anything?
The legend shows line+pointer or only the line when applies for me here: Am I misunderstanding anything?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: lineseries and legend
Your example is what I want. Is there some option I need to set?
Re: lineseries and legend
Hello,
I only created two TLineSeries, and made the Pointer one of them visible and smaller (to see its line better):
Another option is to make the legend symbol not squared and wider:
I only created two TLineSeries, and made the Pointer one of them visible and smaller (to see its line better):
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.View3D:=False;
for i:=0 to 1 do
with Chart1.AddSeries(TLineSeries) as TLineSeries do
begin
if i=0 then
begin
Pointer.Visible:=True;
Pointer.Size:=2;
end;
FillSampleValues;
end;
end;
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.View3D:=False;
for i:=0 to 1 do
with Chart1.AddSeries(TLineSeries) as TLineSeries do
begin
if i=0 then
Pointer.Visible:=True;
FillSampleValues;
end;
Chart1.Legend.Symbol.Squared:=False;
Chart1.Legend.Symbol.WidthUnits:=lcsPixels;
Chart1.Legend.Symbol.Width:=25;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: lineseries and legend
I must have some wrong settings. I now do get lines and the symbols in the legend. The symbols are the correct colors but the lines are all black.
Re: lineseries and legend
Hello,
Does it happen with the latest version (v2017.22) and the examples above?JimR wrote:The symbols are the correct colors but the lines are all black.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: lineseries and legend
Yes, that is the version I am using.
Re: lineseries and legend
Hello,
And do you get a different running the same code in the examples above?JimR wrote:Yes, that is the version I am using.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |