Welcome Guest Search | Active Topics |

Column chart comparision problem with date
bharathnav
#1 Posted : Wednesday, October 16, 2013 1:20:33 AM(UTC)
Rank: Member

Groups: Registered
Joined: 9/17/2013(UTC)
Posts: 16

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

I'm using column chart similar to : http://www.jqchart.com/j.../ChartTypes/ColumnChart

but the data am passing to it has dates for x-axis. Hence am getting the output chart with single color. Can someone please suggest me how to avoid that?

For ex: My data is like this:

series: [
{
type: 'column',
title: 'Series 1',
fillStyle: '#418CF0',
data: [[new Date("2013-10-15"), 33], [new Date("2013-10-14"), 57], new Date("2013-10-13"), 33], [new Date("2013-10-12"), 12], [new Date("2013-10-11"), 35], [new Date("2013-10-10"), 7], [new Date("2013-10-09"), 24]]
},
{
type: 'column',
title: 'Series 2',
fillStyle: '#FCB441',
data: [[new Date("2013-10-15"), 33], [new Date("2013-10-14"), 57], new Date("2013-10-13"), 33], [new Date("2013-10-12"), 12], [new Date("2013-10-11"), 35], [new Date("2013-10-10"), 7], [new Date("2013-10-09"), 24]]
}
]
});

In this case it displays column chart with same color.

Thanks,
Bharat
Dragan
#2 Posted : Wednesday, October 16, 2013 9:19:40 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)
That's because the columns from the second series are rendered over the column of the first series. If you are want to render columns with 2 series at the same time, you should use category x-values.
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.091 seconds.