Page 1 of 1

problem with SeriesColor updation

Posted: Tue Jul 28, 2009 11:10 am
by 12053995
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.

Re: problem with SeriesColor updation

Posted: Tue Jul 28, 2009 2:30 pm
by yeray
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.

Re: problem with SeriesColor updation

Posted: Sat Aug 01, 2009 10:56 am
by 12053995
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.

Re: problem with SeriesColor updation

Posted: Mon Aug 03, 2009 3:01 pm
by yeray
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;

Re: problem with SeriesColor updation

Posted: Tue Aug 04, 2009 4:47 am
by 12053995
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. :)

Re: problem with SeriesColor updation

Posted: Tue Aug 04, 2009 8:34 am
by yeray
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.

Re: problem with SeriesColor updation

Posted: Thu Mar 18, 2010 10:56 am
by narcis
Hello,

Just wanted to let you know that TV52014124 has been fixed for next v8 maintenance release due out in the upcoming weeks.