Adding a Shape in code
Posted: Sun Jul 03, 2005 9:07 pm
I have the code
var
myrig:tchartshape;
then..
myrig:=Tchartshape.Create(chart);
chart.AddSeries(myrig);
myrig.Title:='Myrig';
Myrig.ShowInLegend := True;
Myrig.Marks.Visible := true;
myrig.SeriesColor:=clred;
myrig.XValues[0]:=X1;
myrig.XValues[0]:=Y1;
myrig.Style:=chasCircle;
this creates the object and adds it to my chart legend okay, but I can't find hw to draw the object on the chart. I want to draw the object as a circle at point X, Y with a given radius.
How do I do this please?
cheers
Sean
var
myrig:tchartshape;
then..
myrig:=Tchartshape.Create(chart);
chart.AddSeries(myrig);
myrig.Title:='Myrig';
Myrig.ShowInLegend := True;
Myrig.Marks.Visible := true;
myrig.SeriesColor:=clred;
myrig.XValues[0]:=X1;
myrig.XValues[0]:=Y1;
myrig.Style:=chasCircle;
this creates the object and adds it to my chart legend okay, but I can't find hw to draw the object on the chart. I want to draw the object as a circle at point X, Y with a given radius.
How do I do this please?
cheers
Sean