Page 1 of 1

V6 Series Type

Posted: Wed Aug 05, 2009 8:05 pm
by 10052635
How can I change the series from a TLineSeries to a Horizontal Line Series at runtime. I am using Version 6.

Re: V6 Series Type

Posted: Fri Aug 07, 2009 9:18 am
by yeray
Hi Roy,

I think that this should work:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var series1: TChartSeries;
begin
  series1 := TLineSeries.Create(self);
  Chart1.AddSeries(series1);
  series1.FillSampleValues(25);

  ChangeSeriesType(series1, THorizLineSeries);
end;