Change series color for bars does not work
Change series color for bars does not work
Hi,
I'm using Version 7 in a CBuilder 5.
I have a bar chart in which the user can change bar colors programmatically. The color of the legend changes OK but the corresponding color in the bar chart remains as it was before the change. Line series change OK.
To set and change the color I use the SeriesColor property of TBarSeries. I have used the Series and Chart Repaint method to force repainting but no result.
Thanks in advance.
I'm using Version 7 in a CBuilder 5.
I have a bar chart in which the user can change bar colors programmatically. The color of the legend changes OK but the corresponding color in the bar chart remains as it was before the change. Line series change OK.
To set and change the color I use the SeriesColor property of TBarSeries. I have used the Series and Chart Repaint method to force repainting but no result.
Thanks in advance.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi cic,
We haven't been able to reproduce the problem here. Could you please send us a simple example project we can run "as-is" to reproduce the problem here and let us know which TeeChart version are you using?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
We haven't been able to reproduce the problem here. Could you please send us a simple example project we can run "as-is" to reproduce the problem here and let us know which TeeChart version are you using?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi cic,
Thanks for the example project but I'm not able to run it here because I ghet this error message:
Thanks in advance!
Thanks for the example project but I'm not able to run it here because I ghet this error message:
Could you please let us know how we should solve this?[Pascal Error] TeeMIFCanvas.pas(61): Declaration of 'Arc' differs from previous declaration
Thanks in advance!
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 |
Hi cic,
We've done what you said and now we have another error message:
Thanks in advance.
We've done what you said and now we have another error message:
Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?[C++ Error] main.cpp(6): E2209 Unable to open include file 'iode.hpp'
Thanks in advance.
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:
Hi cic,
Thank you very much for the information but it would be really helpful if we could debug the project here to find where the problem is. So we would really appreciate if you could arrange a simple example project we can run "as-is" to reproduce the problem here.
Thanks in advance!
Thank you very much for the information but it would be really helpful if we could debug the project here to find where the problem is. So we would really appreciate if you could arrange a simple example project we can run "as-is" to reproduce the problem here.
Thanks in advance!
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi cic,
Sorry for the delayed reply but your project wasn't a simple one and took us some time debugging it.
The problem was that you tried to assign a color to the series when you had already assigned a color for each point in the AddXY method and therefore TeeChart didn't take into account the color of the series. To achieve what you request you should modify the code below at ChrtAdd:
Sorry for the delayed reply but your project wasn't a simple one and took us some time debugging it.
The problem was that you tried to assign a color to the series when you had already assigned a color for each point in the AddXY method and therefore TeeChart didn't take into account the color of the series. To achieve what you request you should modify the code below at ChrtAdd:
Code: Select all
for(i = 0; i < nobs; i++) {
if(SCR_ISAN(vals[i*2+1]))
{
Series->AddXY(vals[i*2], vals[i*2+1], """", clTeeColor); // Color
Series->SeriesColor=Color;
}
else
{
if(type != 'B') Series->AddNullXY(vals[i*2], oval, "");
}
}
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 |