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.
problem with SeriesColor updation
Re: problem with SeriesColor updation
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: problem with SeriesColor updation
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.
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 526 times
-
- SeriesColorTest_TeeChart_v8_05.zip
- Project to demostrate mentioned problem in TeeChart v8.05
- (30 KiB) Downloaded 517 times
Re: problem with SeriesColor updation
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:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: problem with SeriesColor updation
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.
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
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: problem with SeriesColor updation
Hello,
Just wanted to let you know that TV52014124 has been fixed for next v8 maintenance release due out in the upcoming weeks.
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 |
Instructions - How to post in this forum |