1, Highchart axis is a string array, must be quoted; vertical axis array of numbers, cannot be quoted
2. JSON content in series, attribute cannot be quoted
3, Chart.height:Number, the height of the chart. The default height is calculated based on the height value of the container div, which is 400px if the container does not have a height value set.
4, the horizontal axis can be directly assigned by the array, as follows Doorarr; foodOptions.xAxis.categories = Doorarr;
Xaxis: {
Categories:doorarr,
Title: {Text:null}
},
Vertical axis foodoptions.series[0].data = Totalarr; or in the option to assign a value in JSON format
{chart: {renderto: ' container ', Animation:false,type: ' column '}, Title: {text: ' Sales data detail '},
Xaxis: {categories: [' cooked food ', ' bun ', ' summary '],title: {text:null}},yaxis: {min:0,title: {text: ' Sales (yuan) ', align: ' high '},
Labels: {overflow: ' Justify '}}, credits: {Enabled:false},
Plotoptions: {
Column: {datalabels: {enabled:true}},
Events: {click:function (e) {alert (e.point.category);}}},
Series: [{cursor: ' pointer ', Show:true,animation:true,name: ' Sales ', DataLabels: {enabled:true}, data: [63.4000,480.0000 , 543.4]}]});
});
Highchart Horizontal longitudinal axis data