Page 1 of 1

Line pointers and grid lines in ActiveX chart are mismatched

Posted: Wed Dec 21, 2005 9:54 pm
by 9528397
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')

Posted: Thu Dec 22, 2005 9:37 am
by narcis
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.

Posted: Thu Dec 22, 2005 3:54 pm
by 9528397
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

Posted: Thu Dec 22, 2005 4:01 pm
by narcis
Hi Steve,

Please send it directly to me.

Thanks in advance.

Posted: Thu Dec 22, 2005 4:04 pm
by 9528397
On its way.
Thx.

Posted: Fri Dec 23, 2005 3:44 pm
by narcis
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.

Posted: Fri Dec 23, 2005 4:16 pm
by 9528397
You rock!
This is the BEST customer support I have ever seen. Many thanks and have a Merry Christmas.
-Steve
:D

Posted: Fri Dec 23, 2005 4:44 pm
by narcis
You're very welcome Steve :wink: !

Thank you very much and have a nice Christmas too.