Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS VCL Chart
Adding and removing series

Start the SerieEditorDialog and click on the - icon to remove or the + icon to add a series. You can add multiple series per pane. Here is an example to remove a series and to add a series to the first pane.
procedure TForm1.AddNewSerie; 
var 
  s: TChartSerie; 
begin 
  s := AdvChartView.Panes[0].Series.Add; 
  // set properties of series here 
end;
or in case of the GDI+ version:
procedure TForm1.AddNewSerie; 
var 
  s: TAdvGDIPChartSerie; 
begin 
  s := AdvGDIPChartView.Panes[0].Series.Add; 
  // set properties of GDI+ series here 
end;
To remove a series:
procedure TForm1.RemoveSerie; 
begin 
  AdvChartView.Panes[0].Series[0].Free; 
end;