Welcome Guest Search | Active Topics |

jqChart for jquery: stackedColumn 2nd number value display abnormal
evangels
#1 Posted : Wednesday, December 24, 2014 10:45:35 PM(UTC)
Rank: Member

Groups: ExpiredLicense, Registered
Joined: 7/30/2013(UTC)
Posts: 15

Thanks: 6 times
Was thanked: 0 time(s) in 0 post(s)
As the title, I try to use stackedColumn chart, but the 2nd value of each column display abnormal.
Here's the chart code:
$('#report').jqChart({
title: {
text: 'Demo'
},
dataSource: {
ajax: {
type: 'GET',
url: '*.php',
data: '',
dataType: 'json'
}
},
axes: [
{
name:'y1',
type: 'linear',
location: 'left',
majorGridLines: {
lineWidth: 1
},
minimum: 0,
maximum: 50,
interval: 5
},
{
name: 'itemx',
type: 'category',
location: 'bottom',
zoomEnabled: false,
labels: {
angle: -45
}
}
],
series: [
{
title: 'DF',
type: 'stackedColumn',
axisY: 'y1',
xValuesField: 'DL',
yValuesField: 'DF',
yValuesType: 'numeric'
},
{
title: 'PH',
type: 'stackedColumn',
axisY: 'y1',
xValuesField: 'DL',
yValuesField: 'PH',
yValuesType: 'numeric'
}
]
});
The length of first column value is correct such as '1', but if the 2nd value is also '1', its length is different with the first value, please help, thanks a lot.
Dragan
#2 Posted : Friday, December 26, 2014 10:18:14 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,

can you post a screenshot of your chart here?
Best Regards,
Dragan Matek
jqChart Inc.
evangels
#3 Posted : Thursday, January 08, 2015 2:17:06 AM(UTC)
Rank: Member

Groups: ExpiredLicense, Registered
Joined: 7/30/2013(UTC)
Posts: 15

Thanks: 6 times
Was thanked: 0 time(s) in 0 post(s)
I've solved the problem, I didn't set the data type corrently before so the chart treat the y value as string instead of integer, thanks for reply
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.134 seconds.