We are using the ActiveX control to plot time-series data using the scline type pen. The bottom axis is a datetime field and the left axis is numeric. We want to use a bottom label style of Value or Text (i.e., .Axis.Bottom.Labels.Style = talValue) so that we can format the datetime field to display date & time in 2 lines. But, after we zoom in a 2 - 4 times we notice that the line pointers no longer align with the correct vertical grid line.
i.e, after we zoom in a couple of times we notice that the pointer for a value at, let's say 12/18/2005 11:05:00 AM, appears BETWEEN the gridlines for 11:00:00 AM and 11:00:05 AM, when it should lie on the 11:00:05 grid line.
If we set the label style to Auto then this behavior goes away, but then the date format is wrong and we can't modify it without changing the regional settings for the PC (and it still doesn't display 'cleanly')
Line pointers and grid lines in ActiveX chart are mismatched
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello,
I'm not able to reproduce this behaviour here using TeeChart Pro v7.0.0.6 ActiveX. Which TeeChart version are you using? Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attacments[/url] newsgroup.
I'm not able to reproduce this behaviour here using TeeChart Pro v7.0.0.6 ActiveX. Which TeeChart version are you using? Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attacments[/url] newsgroup.
You can always customize your labels using OnGetAxisLabel event.If we set the label style to Auto then this behavior goes away, but then the date format is wrong and we can't modify it without changing the regional settings for the PC (and it still doesn't display 'cleanly')
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 Steve,
Please send it directly to me.
Thanks in advance.
Please send it directly to me.
Thanks in advance.
Last edited by Narcís on Wed Oct 04, 2006 11:21 am, edited 1 time in total.
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 Steve,
Thanks for the project reproducing the issue you reported.
This is not a bug. We have modified your project so that it works fine. The problem was that miliseconds are not rounded to zero when zooming, only if you don't have a TChart1.Axis.Bottom.Increment assigned. Then, as your data is rounded, grid lines have this offset. Setting the increment for the axis the problem solves the problem. I'm goint to send you the working project.
Thanks for the project reproducing the issue you reported.
This is not a bug. We have modified your project so that it works fine. The problem was that miliseconds are not rounded to zero when zooming, only if you don't have a TChart1.Axis.Bottom.Increment assigned. Then, as your data is rounded, grid lines have this offset. Setting the increment for the axis the problem solves the problem. I'm goint to send you the working project.
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:
You're very welcome Steve !
Thank you very much and have a nice Christmas too.
Thank you very much and have a nice Christmas too.
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 |