Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
159
rated 0 times [  161] [ 2]  / answers: 1 / hits: 33400  / 12 Years ago, wed, june 27, 2012, 12:00:00

enter



$(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) .);
});


The data is there an correct, it's just showing my xAxis on the yAxis for some reason...


More From » highcharts

 Answers
4

Vertical bar charts are called column's in Highchart.



Change this:



type: 'column' //was 'bar' previously`


See example here: http://jsfiddle.net/aznBb/


[#84613] Tuesday, June 26, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aleighabayleef

Total Points: 511
Total Questions: 99
Total Answers: 99

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
;