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
Using TImagePointSeries
-
- Newbie
- Posts: 2
- Joined: Thu Dec 09, 2010 12:00 am
Re: Using TImagePointSeries
Oops, my mistake. The line
SeriesIP : TImagePointSeries;
can be manually inserted in the Private or Public sections of the Form.
Russell
SeriesIP : TImagePointSeries;
can be manually inserted in the Private or Public sections of the Form.
Russell
Re: Using TImagePointSeries
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:
Can you confirm us if previous code works as you want?
I hope will helps,
Thanks,
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;
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 |
Instructions - How to post in this forum |