Using TImagePointSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
russellbelding
Newbie
Newbie
Posts: 2
Joined: Thu Dec 09, 2010 12:00 am

Using TImagePointSeries

Post by russellbelding » Wed Jan 26, 2011 8:15 am

How do I insert a TImagePointSeries into a TChart?

The Demo example in Tee9New - All Features - Chart Style - Other - Image Point does not help.
Using D2010 have a TChart on a form and 2x click the TChart to open the Chart Editor. From there I can add a TPointSeries. I cannot cast this TPointSeries to a TImagePointSeries. If Imanually add SeriesImPt : TImagePointSeries this give a compiler error "No Component".

Hence my question.
Thanks,
Russell

russellbelding
Newbie
Newbie
Posts: 2
Joined: Thu Dec 09, 2010 12:00 am

Re: Using TImagePointSeries

Post by russellbelding » Wed Jan 26, 2011 8:27 am

Oops, my mistake. The line
SeriesIP : TImagePointSeries;
can be manually inserted in the Private or Public sections of the Form.
Russell

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Using TImagePointSeries

Post by Sandra » Wed Jan 26, 2011 9:31 am

Hello russellbelding,

You need use Series and ImaPoint classes, if you want add TImagePoinSeries in your project. You can do something as next example of code:

Code: Select all

implementation

{$R *.dfm}
uses Series, ImaPoint;
procedure TForm2.FormCreate(Sender: TObject);
var  Series2:TImagePointSeries;
    i:Integer;

begin
     Chart1.View3D:=False;
     Series2 := TImagePointSeries.Create(self);
     Chart1.AddSeries(Series2);
     Series2.FillSampleValues(10);
end;
Can you confirm us if previous code works as you want?

I hope will helps,
Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply