Is there a way to make standard legend spit into two columns. I have chat with about 16 series, legend has checkbox and name for each series, but the height of the legend is greater than height of cxhart. Would like legend to divide into 8 rows of two columns. The extra-legend tool looks tricky for something simple lie this.
thanks
SM
Two column legend
Re: Two column legend
Hello,
-You could use the Custom Legend Tool as in the example at "What's New ?\Welcome !\New Chart Tools\Custom Legend Tool" in the features demo program shipped with the installation.
- You could use two TChartListBox:
-You could use the Custom Legend Tool as in the example at "What's New ?\Welcome !\New Chart Tools\Custom Legend Tool" in the features demo program shipped with the installation.
- You could use two TChartListBox:
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.View3D:=false;
ChartListBox1.ShowActiveCheck:=false;
ChartListBox1.ShowSeriesIcon:=false;
ChartListBox2.ShowActiveCheck:=false;
ChartListBox2.ShowSeriesIcon:=false;
for i:=0 to 15 do
begin
with Chart1.AddSeries(TFastLineSeries) do
begin
FillSampleValues;
if i<8 then
ChartListBox1.AddItem(SeriesTitleOrName(Chart1[i]), Chart1[i])
else
ChartListBox2.AddItem(SeriesTitleOrName(Chart1[i]), Chart1[i]);
end;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |