Author |
Topic  |
|
cniborn
3 Posts |
Posted - 12 Oct 2006 : 07:46:27
|
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
1164 Posts |
Posted - 12 Oct 2006 : 10:13:29
|
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
|
 |
|
cniborn
3 Posts |
Posted - 12 Oct 2006 : 10:50:46
|
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 |
 |
|
quinncurtis
1164 Posts |
Posted - 12 Oct 2006 : 11:12:55
|
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. |
 |
|
cniborn
3 Posts |
Posted - 12 Oct 2006 : 11:32:46
|
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 |
 |
|
quinncurtis
1164 Posts |
Posted - 12 Oct 2006 : 11:46:01
|
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.
|
 |
|
|
Topic  |
|