Welcome Guest Search | Active Topics |

Can a stacked column chart use a dateTime axis?
jetsie
#1 Posted : Wednesday, April 11, 2012 8:00:22 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/11/2012(UTC)
Posts: 3

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
I'm currently evaluating jqChart and I'm impressed so far. Just a quick question:

Can a stacked column chart use a dateTime axis?

I need to graph a date interval (6 months), where only 40 days scattered throughout the interval have data.

A dateTime axis would really come in handy, so I would be able to render it, without manually generating all days as data points, but only those with data.

I've tried the following, but it doesn't quite work:

$('#jqChart').jqChart({
axes: [
{ type: 'linear', location: 'left' },
{ type: 'dateTime', location: 'bottom'}
],
series: [
{ type: 'stackedColumn', data: [ [new Date(2011, 1, 6), 5], [new Date(2011, 1, 7), 7], [new Date(2011, 1, 19), 9] ] },
]
});
Dragan
#2 Posted : Wednesday, April 11, 2012 10:34: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,

Unfortunately, currently jqChart doesn’t support stacked column on dateTime axis. It supports column chart on dateTime axis, but not stacked column. Stacked charts are usually used with category axis, because it is more clear, which exactly columns should be stacked.
Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
jetsie on 4/12/2012(UTC)
dan1dyoung
#3 Posted : Thursday, June 27, 2013 8:33:35 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2013(UTC)
Posts: 1

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

Unfortunately, currently jqChart doesn’t support stacked column on dateTime axis. It supports column chart on dateTime axis, but not stacked column. Stacked charts are usually used with category axis, because it is more clear, which exactly columns should be stacked.



Hi,

Has this been added yet as i am just trying and it doesn't appear t work still??

Was looking to use the 100% stacked along with the Grouped.

Dan
Dragan
#4 Posted : Thursday, June 27, 2013 11:44:30 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)
Since version 3.7.0.0 jqChart supports stacked column/bar chart on Linear or DateTime X-Axis.

Grouping is not available on Linear or DateTime X-Axis. It's available only on category. When the x-axis is linear or date time the bars or columns need to be placed on their exact positions. If we group them, it will appear that they have different x-values, which is not correct.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
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.105 seconds.