Line pointers and grid lines in ActiveX chart are mismatched

TeeChart for ActiveX, COM and ASP
Post Reply
KCallahan
Newbie
Newbie
Posts: 4
Joined: Mon Sep 26, 2005 4:00 am
Location: MA
Contact:

Line pointers and grid lines in ActiveX chart are mismatched

Post by KCallahan » Wed Dec 21, 2005 9:54 pm

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')

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Dec 22, 2005 9:37 am

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.
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')
You can always customize your labels using OnGetAxisLabel event.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

KCallahan
Newbie
Newbie
Posts: 4
Joined: Mon Sep 26, 2005 4:00 am
Location: MA
Contact:

Post by KCallahan » Thu Dec 22, 2005 3:54 pm

Hi Narcis,
I've reproduced the bug in a VB form, but I can't get past the corporate firewall to post. (newsgroups are blocked) Is there another location (.e.g, FTP) I can upload the file?
Thanks,
Steve

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Dec 22, 2005 4:01 pm

Hi Steve,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

KCallahan
Newbie
Newbie
Posts: 4
Joined: Mon Sep 26, 2005 4:00 am
Location: MA
Contact:

Post by KCallahan » Thu Dec 22, 2005 4:04 pm

On its way.
Thx.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Dec 23, 2005 3:44 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

KCallahan
Newbie
Newbie
Posts: 4
Joined: Mon Sep 26, 2005 4:00 am
Location: MA
Contact:

Post by KCallahan » Fri Dec 23, 2005 4:16 pm

You rock!
This is the BEST customer support I have ever seen. Many thanks and have a Merry Christmas.
-Steve
:D

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Dec 23, 2005 4:44 pm

You're very welcome Steve :wink: !

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply