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.