Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Windows
 ActiveX Controls
 x-Axis in Date Format

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]


T O P I C    R E V I E W
cniborn Posted - 12 Oct 2006 : 07:46:27
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?

5   L A T E S T    R E P L I E S    (Newest First)
quinncurtis 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.
cniborn 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.

quinncurtis 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 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

23 00 01

quinncurtis 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

Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07