Welcome Guest Search | Active Topics |

Different label format for different intervals
Vince
#1 Posted : Tuesday, April 30, 2013 4:14:08 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Is there a built-in possibility to assing different stringFormats to axis-labels for different intervals? It would be nice, if the label format could change when the user zooms in or out of the chart.
Dragan
#2 Posted : Tuesday, April 30, 2013 4:34:35 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)
Yes, it is possible. Here are the default values:
Code:
axes: [
                        {
                            type: 'dateTime',
                            location: 'bottom',
                            zoomEnabled: true,
                            labels: {
                                yearsIntervalStringFormat: 'yyyy',
                                monthsIntervalStringFormat: 'm/d/yy',
                                weeksIntervalStringFormat: 'm/d/yy',
                                daysIntervalStringFormat: 'm/d/yy',
                                hoursIntervalStringFormat: 'm/d/yy HH:MM',
                                minutesIntervalStringFormat: 'h:MM TT',
                                secondsIntervalStringFormat: 'h:MM:ss TT',
                                millisecondsIntervalStringFormat: 'h:MM:ss TT'
                            }
                        }


You can change them as you want.
Best Regards,
Dragan Matek
jqChart Inc.
Vince
#3 Posted : Tuesday, April 30, 2013 4:45:12 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Thanks for that quick reply.
Is that something I can find in the documentation somewhere?
Dragan
#4 Posted : Tuesday, April 30, 2013 4:58:35 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)
Not right now, unfortunately. We're still working on our documentation.
Best Regards,
Dragan Matek
jqChart Inc.
Vince
#5 Posted : Tuesday, April 30, 2013 7:53:26 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Okay, that's good to know :)
Users browsing this topic
Guest (2)
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.069 seconds.