TChartEditor and change color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

TChartEditor and change color

Post by Calou » Wed Nov 19, 2008 10:38 am

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

MarkusM
Newbie
Newbie
Posts: 3
Joined: Tue Mar 11, 2008 12:00 am

Post by MarkusM » Wed Nov 19, 2008 2:30 pm

Did you set the "Color Each" Property under Series ->Series1 -> Format?

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Post by Calou » Wed Nov 19, 2008 2:35 pm

Hello,

No this is not my case

Thank you

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 19, 2008 3:45 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Post by Calou » Wed Nov 19, 2008 4:08 pm

Thank you for help

Regards

Post Reply