Welcome Guest Search | Active Topics |

jqChart date time axis show previous date
harishs
#1 Posted : Wednesday, July 23, 2014 10:52:31 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/22/2014(UTC)
Posts: 4

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

I am using jqChart with DateTimeAxis and LinearAxis. I am showing data from Jan 1, 2014 to till date.
But jqChart shows previous month date 12/29/2013 as well. I tried to set the date format to "mmm,yyyy" but it still show 'December, 2013' in datetime axis.
Please let me know how could I fix this. Currently I am using trial version and will purchase if I can customize it the say I want to.

Thanks
Harish Singh
Dragan
#2 Posted : Wednesday, July 23, 2014 11:05:17 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)
Here is the topic about date formatting:
http://www.jqchart.com/docs/jquery/#!/guide/LabelsFormatting-section-formatting-date-values

please, let me know if this doesn't help.
Best Regards,
Dragan Matek
jqChart Inc.
Dragan
#3 Posted : Wednesday, July 23, 2014 11:08:57 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)
Also you can set the minimum date of the date time axis to Jan 1, 2014:
http://www.jqchart.com/docs/jquery/#!/guide/DateTimeAxis-section-customizing-scale
Best Regards,
Dragan Matek
jqChart Inc.
harishs
#4 Posted : Thursday, July 24, 2014 4:48:23 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/22/2014(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello Dragan,

Thanks for the quick reply but this doesn't answers my question. I need to remove the unwanted date coming at the beginning of the X-axis i.e. datetime axis. How can I remove that date.

The graph shows date on X-axis like

Dec, 2013 Jan, 2014 Feb, 2014, Mar, 2014 Apr, 2014 May, 2014 Jun, 2014.

I don't want the first date i.e. Dec, 2013 as data is Jan, 2014 onward only.

Thanks
Harish Singh
Dragan
#5 Posted : Thursday, July 24, 2014 4:49:36 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)
You can set the minimum date of the date time axis to Jan 1, 2014:
http://www.jqchart.com/docs/jquery/#!/guide/DateTimeAxis-section-customizing-scale
Best Regards,
Dragan Matek
jqChart Inc.
harishs
#6 Posted : Thursday, July 24, 2014 5:31:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/22/2014(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I set the minimum date but now it displays Jan, 2014 twice on datetime X-axis.
Dragan
#7 Posted : Thursday, July 24, 2014 5:43: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)
You can remove your labels formatting, so the labels will show and the exact day, not only month and year.
Best Regards,
Dragan Matek
jqChart Inc.
harishs
#8 Posted : Thursday, July 24, 2014 6:04:31 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/22/2014(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I need to show month and year only that too once for a month. If this is not possible then can tell me a way to show first day of each month only not all dates. e.g. Jan 1, 2014 Feb 1, 2014
Dragan
#9 Posted : Thursday, July 24, 2014 6:24:20 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)
In this case you can set these options to your date time axis:

interval: 1,
intervalType: 'months'
Best Regards,
Dragan Matek
jqChart Inc.
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.263 seconds.