V6 Series Type

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

V6 Series Type

Post by Roy » Wed Aug 05, 2009 8:05 pm

How can I change the series from a TLineSeries to a Horizontal Line Series at runtime. I am using Version 6.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: V6 Series Type

Post by Yeray » Fri Aug 07, 2009 9:18 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply