Page 1 of 1

TChartEditor and change color

Posted: Wed Nov 19, 2008 10:38 am
by 10050873
Hello,

I use TchartEditor in my application (chareditor.execute).

I can't change the color of my series with the editor.

When i draw the serie i use SerieTest.AddXY(2,10,'',clPurple)

Thank you for help

Regards

Posted: Wed Nov 19, 2008 2:30 pm
by 10548594
Did you set the "Color Each" Property under Series ->Series1 -> Format?

Posted: Wed Nov 19, 2008 2:35 pm
by 10050873
Hello,

No this is not my case

Thank you

Posted: Wed Nov 19, 2008 3:45 pm
by narcis
Hi Calou,

To be able to do what you request you need to set series color and populate them like this:

Code: Select all

  Series1.Color:=clPurple;
  Series1.AddXY(2,10,'',clTeeColor);
  Series1.AddXY(3,10,'',clTeeColor);
  Series1.AddXY(4,10,'',clTeeColor);
  Series1.AddXY(5,10,'',clTeeColor);
  Series1.AddXY(6,10,'',clTeeColor);
Or this:

Code: Select all

  Series1.Color:=clPurple;
  Series1.AddXY(2,10);
  Series1.AddXY(3,10);
  Series1.AddXY(4,10);
  Series1.AddXY(5,10);
  Series1.AddXY(6,10);
Otherwise, you are setting a specific color for each point of the series (even it's the same color for all points) and therefore overall series color can not be changed.

Posted: Wed Nov 19, 2008 4:08 pm
by 10050873
Thank you for help

Regards