Page 1 of 1

series color on creation

Posted: Tue Sep 28, 2004 9:43 pm
by 8577319
Hi, how do access the seriesColor property upon creation?

What I wanna do is to have is a kind of decendant of TLine series with some default properties, so what I did was something like:

constructor TThisLineSeries.create(Aowner: TComponent);
begin
inherited;
Outline.color := SeriesColor;
LinePen.Color := ApplyBright(seriesColor);
outline.visible := true;
end;

the seriescolor doesn't seem to be applied yet.

Posted: Wed Sep 29, 2004 7:17 am
by Marjan
Hi.

Try using the GetDefaultColor(ParentChart.Count) instead.

Posted: Wed Sep 29, 2004 11:34 pm
by 8577319
Oh, now I get it, so default colors come from the parent chart, that's why it isn't there until we assign the series to a chart.

Thanks a lot.