ChartAxisLabel format strings |
Post Reply |
Author | |
Mr. DX
Newbie Joined: 07 July 2011 Status: Offline Points: 5 |
Post Options
Thanks(0)
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!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Its updated in 15.1. ChartBrowser in this version has DateTime scale demo that show different values.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Mr. DX
Newbie Joined: 07 July 2011 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You can download 15.1 beta from store.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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" |
|
Mr. DX
Newbie Joined: 07 July 2011 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |