Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 ActiveX Controls
 x-Axis in Date Format
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cniborn

3 Posts

Posted - 12 Oct 2006 :  07:46:27  Show Profile  Reply with Quote
Hi,
i'm trying to code an simple line chart with a date axis. i have modified one of the exampes like this:

pXData0(0) = CDbl(CDate("01.02.2006 15:00:00"))
pXData0(1) = CDbl(CDate("01.02.2006 16:00:00"))
pXData0(2) = CDbl(CDate("01.02.2006 17:00:00"))


the axis label format is set to 'Time - H:M:S'.
the x axis in the chart is:

----'-----------'-----------'--------
10:45:49 10:45:49 10:45:49


and not how expected:

----'-----------'-----------'--------
15:00:00 16:00:00 17:00:00

Any ideas on what I need set to make this chart behave?
thanks

Christiane

quinncurtis

1534 Posts

Posted - 12 Oct 2006 :  10:13:29  Show Profile  Reply with Quote
The time axis labels format assumes that the axis is scaled for seconds.

You would represent the times in your example as seconds.

Given the hour (and/or minute and second) calculate the equivalent seconds

pXData0(0) = 15 * 3600
pXData0(1) = 16 * 3600
pXData0(2) = 17 * 3600

Go to Top of Page

cniborn

3 Posts

Posted - 12 Oct 2006 :  10:50:46  Show Profile  Reply with Quote
Thanks for your reply,

how can I handle days or month in the axis?

pXData0(0) = 23 * 3600
pXData0(1) = 0 * 3600 + 1 * 86400
pXData0(2) = 1 * 3600 + 1 * 86400

produces that:
----'-----------'-----------'--------
23:00:00 24:00:00 25:00:00



I need an axix like that:
----'-----------'-----------'--------
23:00:00 00:00:00 01:00:00

or
----'-----------'-----------'--------
23 00 01

christiane
Go to Top of Page

quinncurtis

1534 Posts

Posted - 12 Oct 2006 :  11:12:55  Show Profile  Reply with Quote
The CTWX control only supports a simple elapsed time-of-day (hh:mm:ss) format, with no roll-over at midnight. There is no generic calendar support that also includes months, years and days.

Advanced time/date support is found in our more recent products: Charting Tools for Windows, and QCChart2D for .Net.
Go to Top of Page

cniborn

3 Posts

Posted - 12 Oct 2006 :  11:32:46  Show Profile  Reply with Quote
i'am creating an activeX control with vb6 that displays the chart. is it possible to use the Charting Tools for Windows for that.

christiane
Go to Top of Page

quinncurtis

1534 Posts

Posted - 12 Oct 2006 :  11:46:01  Show Profile  Reply with Quote
The VB version of the Charting Tools for Windows (WIN-VB-100) is NOT an ActiveX control; rather it is a programming library that can be called from VB. We have always found that for charting, the non-Active approach is infinitely more flexible and powerful than the ActiveX approach.

Would you, a VB programmer, be able to encapsulate our WIN-VB-100 as an ActiveX control ? We don't know. That is not anything that we support. You would be entirely on your own in that regard.

Also there are license issues. If you use any of our programming libraries to make an ActiveX (or any other type of) control, that control must ultimately be made an integral part of any application that you create and distribute. It cannot be distributed as an independent, standalone ActiveX product.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07