Page 1 of 1

Using TImagePointSeries

Posted: Wed Jan 26, 2011 8:15 am
by 16458038
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

Re: Using TImagePointSeries

Posted: Wed Jan 26, 2011 8:27 am
by 16458038
Oops, my mistake. The line
SeriesIP : TImagePointSeries;
can be manually inserted in the Private or Public sections of the Form.
Russell

Re: Using TImagePointSeries

Posted: Wed Jan 26, 2011 9:31 am
by 10050769
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,