Welcome Guest Search | Active Topics |

how to change the date format of a dateTime axis
will123195
#1 Posted : Thursday, June 13, 2013 3:19:07 PM(UTC)
Rank: Newbie

Groups: ExpiredLicense, Registered
Joined: 6/13/2013(UTC)
Posts: 1

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Currently my dateTime axis shows the date in "6/13/2013" format. How can I change it to "Jun 13, 2013"?
Dragan
#2 Posted : Friday, June 14, 2013 1:35:41 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

You can use this code:

Code:
axes: [
                    {
                        location: 'bottom',
                        type: 'dateTime',
                        labels: { stringFormat: 'mmm d, yyyy' }
                    }
                ]


More about labels formatting here:
http://www.jqchart.com/documentation/userguide/default.aspx#!LabelsFormatting
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
will123195 on 6/14/2013(UTC)
Users browsing this topic
Guest (3)
Forum Jump  
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.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.071 seconds.