$(document).ready(function() {
chart1 = new Highcharts.Chart({
chart: {
renderTo: 'QueryResultsChart',
type: 'bar'
},
title: {
text: 'Production History'
},
xAxis: {
title: {
text: 'Production Day'
},
type: 'datetime'
},
yAxis: {
title: {
text: 'Gross Production'
}
},
series: [{
name: 'Data',
data: []
}]
});
chart1.series[0].setData(". json_encode($aChartData) .");
});
http://jsfiddle.net/aznBb/
chart: {
type: 'bar',
inverted: false // default
}
chart: {
type: 'bar',
inverted: true
}
chart: {
type: 'column',
inverted: false // default
chart: {
type: 'column',
inverted: true
}
type: 'column' //was 'bar' previously
参见这里的示例:http://jsfiddle.net/aznBb/
相似问题