problem with SeriesColor updation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MDA team
Newbie
Newbie
Posts: 9
Joined: Fri Jul 24, 2009 12:00 am

problem with SeriesColor updation

Post by MDA team » Tue Jul 28, 2009 11:10 am

Hi,

We have a problem with seriescolor updation in our application. The following are steps and environment.
BCB 2009 Professional ( with update 3) + Teechart 8.05 std version.
The project is migrated from BCB6 to BCB2009. Also there was a known issue in 8.03 version of Teechart ( came with BCB2009 as default ) and so we upgraded to 8.05 std version ( separate purchase).

to change the color of series color to user defined value, we are setting the mode to

series->mode = pmCopy ;
series->SeriesCOlor = clWhite;
But series color is not changing. It retains the the pervious value. If mode is changed to pmBlack or pmWhite it works.

Till in 8.03 std version, this problem is not observed. Only in 8.05 we see this problem.

Please give hints to this problem.

Yeray
Site Admin
Site Admin
Posts: 9533
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: problem with SeriesColor updation

Post by Yeray » Tue Jul 28, 2009 2:30 pm

Hi MDA team,

I'm afraid that we don't have enough information to understand your exact situation. Please, reply a few questions:

- In what series type are you facing this problem?
- Have you entered the data with an Add method specifying the color for each point of the series?
- Have you set ColorEach series' property to true?

It would be also fastest and easier if you could attach here a simple example project we could run as-is to reproduce the problem here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

MDA team
Newbie
Newbie
Posts: 9
Joined: Fri Jul 24, 2009 12:00 am

Re: problem with SeriesColor updation

Post by MDA team » Sat Aug 01, 2009 10:56 am

Hi,

Thanks for your inputs,
We are using the TDBChart[TeeChart v8.05] with TLineSeries as series type.

Problem description:
The TLineSeries is created on runtime and the data is filled using “AddXY” method. We are not able to update this TLineSeries color to user defined value on runtime.
But this problem is not seen with the TLineSeries created on design time.

Please refer attached “SeriesColorTest_TeeChart_v8_05.zip” project for details.

Note:
This TLineSeries color updation problem is not seen with TDBChart[TeeChart v8.03]. Please refer attached sample project “SeriesColourTest_TeeChart_V8_03.zip”.

Please provide your feedback as soon as possible as this is a high priority issue for us.
Attachments
SeriesColourTest_TeeChart_V8_03.zip
Project to demostrate mentioned problem is not seen TeeChart v8.03
(5.48 KiB) Downloaded 474 times
SeriesColorTest_TeeChart_v8_05.zip
Project to demostrate mentioned problem in TeeChart v8.05
(30 KiB) Downloaded 481 times

Yeray
Site Admin
Site Admin
Posts: 9533
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: problem with SeriesColor updation

Post by Yeray » Mon Aug 03, 2009 3:01 pm

Hi MDA team,

Thanks for the project, now I understood the problem and I want you to know that this is a known bug already in the wish list to be fixed asap (TV52014124).
The problem is that adding the points with color to a line series in 2D, the ColorEachLine property doesn't seem to work fine.

I the meanwhile I'm afraid that to change you series color you'll have to loop into your series color list and change all its values color. Something like this:

Code: Select all

for i:=0 to RuntimeSeries.Count-1 do RuntimeSeries.ValueColor[i] := clRed;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

MDA team
Newbie
Newbie
Posts: 9
Joined: Fri Jul 24, 2009 12:00 am

Re: problem with SeriesColor updation

Post by MDA team » Tue Aug 04, 2009 4:47 am

Hi yeray,
Thaks for the replay,
As you mentioned "ColorEachPoint" doesn't have any impact on series added with "AddXY"method.

Currently to change the color of series we are using the following method.

Series->ValueColor[Counter] = clRed ;

But we suspect that this will degrade the performance.
Please provide the concrete solution ASAP.

Thanks in advance. :)

Yeray
Site Admin
Site Admin
Posts: 9533
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: problem with SeriesColor updation

Post by Yeray » Tue Aug 04, 2009 8:34 am

Hi MDA team,

When you change the series color, the series should "forget" each value color and use the given "new" color. That means that the ColorEachLine should be deactivated (an I think it is) and that should imply that the series color should be used to draw all the sections of the line. But this seems not to be working fine in 2D.

So, as I said above, we'll try to fix it asap.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

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

Re: problem with SeriesColor updation

Post by Narcís » Thu Mar 18, 2010 10:56 am

Hello,

Just wanted to let you know that TV52014124 has been fixed for next v8 maintenance release due out in the upcoming weeks.
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

Post Reply