Hello,
I have project which writing elements to data base and next display it on the chart as a gantt series (in short explain).
I would like write color to data base and and next it display on the chart.
So I need function which find me next color for my element when I write it do data base.
Automatically colors working ok. But when I delete or move element I see it on then chart in different color.
I need be sure that each time the same element has same color.
Best Regards
Wiesiek
How can I get next different color for element gantt series.
Re: How can I get next different color for element gantt series.
Hi Wiesiek,
By default, TeeChart uses the Opera palette. This means that when the color isn't explicitly defined for a point, the next color in the OperaPalette array of colors is taken.
This would explain why, when you remove a point the colors from that point are displaced a position.
You could try to add the points to the series with color (see the different Add functions).
Don't hesitate to let us know if this doesn't work fine for you.
By default, TeeChart uses the Opera palette. This means that when the color isn't explicitly defined for a point, the next color in the OperaPalette array of colors is taken.
This would explain why, when you remove a point the colors from that point are displaced a position.
You could try to add the points to the series with color (see the different Add functions).
Don't hesitate to let us know if this doesn't work fine for you.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |