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
TChartEditor and change color
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Calou,
To be able to do what you request you need to set series color and populate them like this:
Or this:
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.
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);
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);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |