G'day,
I recently upgrade from BCB6 to BCB2009, and subsequently had to upgrade TeeChart from 6.01 Pro to 8.04 Pro. So I've migrated my program over, along with its TeeChart component.
Basically my graph works by giving users a checkboxlist that they can use to toggle series on or off. Since updating the bottom axis has not been updating properly and stays stuck on the single entry "30/12/1899 12:00:00 AM".
However, the left and right axis and their associated series seem to be behaving properly.
Additionally, the Background colour (of just the graph) doesn't seem to be getting set properly anymore.
It's possible some of the options just didn't migrate - another one of my TeeChart's mysteriously lost a property or two during the upgrade.
I know it's a long shot, but I'm wondering if any changes in TeeChart could account for this?
TeeChart 6.01 -> TeeChart 8.04 Problems
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Gerard,
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
This may indicate that your x values didn't upgrade correctly. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?Basically my graph works by giving users a checkboxlist that they can use to toggle series on or off. Since updating the bottom axis has not been updating properly and stays stuck on the single entry "30/12/1899 12:00:00 AM".
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
What has changed on the background?Additionally, the Background colour (of just the graph) doesn't seem to be getting set properly anymore.
Which are the properties that were lost?It's possible some of the options just didn't migrate - another one of my TeeChart's mysteriously lost a property or two during the upgrade.
Backwards compatibility is something we specially care about when developing new versions but sometimes it's also unavoidable bracking old features.I know it's a long shot, but I'm wondering if any changes in TeeChart could account for this?
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 |
G'day again
Chart->Axis->LeftAxis->Labels->Style->Min Separation value got changed from the old 10% to 0%. The Min Separation on other axis also changed, but they're not used anyway.
Thank you for the prompt response. I'll let you know if I figure it out.
Not trivially, I'm afraid.narcis wrote:This may indicate that your x values didn't upgrade correctly. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
The actual TeeChart background is gray, and the background of the graph itself used to be handled in-code by the Chart->BackColor property. Currently the whole lot is always gray, regardless of trying to change the chart's own background.What has changed on the background?
We have a wind rose, and itsWhich are the properties that were lost?
Chart->Axis->LeftAxis->Labels->Style->Min Separation value got changed from the old 10% to 0%. The Min Separation on other axis also changed, but they're not used anyway.
There's a chance that this fault has nothing to do with TeeChart - six years is a long time between updates, and there's a chance it's something changed in the IDE that's done it.Backwards compatibility is something we specially care about when developing new versions but sometimes it's also unavoidable bracking old features.
Thank you for the prompt response. I'll let you know if I figure it out.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Gerard,
You can try using Color instead:The actual TeeChart background is gray, and the background of the graph itself used to be handled in-code by the Chart->BackColor property. Currently the whole lot is always gray, regardless of trying to change the chart's own background.
Code: Select all
Chart1->Color=clRed;
Do you mean Chart1->Axes->Left->LabelsSeparation?We have a wind rose, and its
Chart->Axis->LeftAxis->Labels->Style->Min Separation value got changed from the old 10% to 0%. The Min Separation on other axis also changed, but they're not used anyway.
In that case you may also want to check TDateTime specifications. This may help you identifing the problem.There's a chance that this fault has nothing to do with TeeChart - six years is a long time between updates, and there's a chance it's something changed in the IDE that's done it.
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 |
This works, however it changes the entire TeeChart colour. I want to change the background colour of the graph only - and have the remaining TeeChart object have a different background colour.narcis wrote:You can try using Color instead
If I'm being unclear let me know and I'll post a picture to explain better.
Edit:
I fixed it - the problem was the Chart > Walls > Visible Walls was unchecked. Checking this made it all work as it used to.
Yeah.Do you mean Chart1->Axes->Left->LabelsSeparation?
I have tracked down the problem. It had to do with some of my code that generates the date and times information being broken by BCB2009 using UnicodeString. The conversion failed and hence the x-axis values weren't been produced.There's a chance that this fault has nothing to do with TeeChart - six years is a long time between updates, and there's a chance it's something changed in the IDE that's done it.
A minor change to two lines of code later and the whole thing is working again.
Thank you very much for your help, Narcis. =)