Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - ChartAxisLabel format strings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ChartAxisLabel format strings

 Post Reply Post Reply
Author
Message
Mr. DX View Drop Down
Newbie
Newbie


Joined: 07 July 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr. DX Quote  Post ReplyReply Direct Link To This Post Topic: ChartAxisLabel format strings
    Posted: 07 July 2011 at 2:54pm
Hi,
 
the format property of the ChartAxisLabel object is described only very shortly in the online help. So I don't know what format strings can be used to format for example date and time strings. The usual format strings used in VB, for example "hh:mm" etc., don't work. Can somebody help me? Where can I find a list of format strings? Thanks alot for your help! Confused
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2011 at 6:28am
Its updated in 15.1. ChartBrowser in this version has DateTime scale demo that show different values.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Mr. DX View Drop Down
Newbie
Newbie


Joined: 07 July 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr. DX Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2011 at 4:23pm
Dear Oleg,
thanks for the info! Is there no list of format strings available to be used with the chart control?  Where can I download version 15.1?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2011 at 8:26am
You can download 15.1 beta from store.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2011 at 9:47am
You can specify your own custom format when DateTimeCategory is set to xtpChartDateTimeCustom.

 

Here are just a few examples of custom formats:

Days:

"d MMM", "d MMM, yyyy", "MMMM, dd" and "MM/dd/yyyy".

Months:

"MMM", "MMM, yyyy", "MMMM, yyyy", "MM/dd/yyyy", "MMMM, yyyy"

Years:

"yyyy", "yy"

Time:

"HH:mm", "ddd, HH:mm"

 

This example shows how to set a custom date format:

    Dim Diagram As ChartDiagram2D
    Set Diagram = ChartControl.Content.Diagrams(0)
    Diagram.AxisX.Label.Format.DateTimeCategory = xtpChartDateTimeCustom
    Diagram.AxisX.Label.Format.DateTimeFormat = "MM/dd/yyyy"

 
Back to Top
Mr. DX View Drop Down
Newbie
Newbie


Joined: 07 July 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr. DX Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2011 at 4:37pm
Hi Oleg and SuperMario,
thanks for your help! This are usual strings used to format date and time data. The problem is, I can't find the DateTimeCategory property in Chart Pro 15.0.2. Is this only available in XCP 15.1?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.