Highcharts-4.1.7使用例(キー部分コード)
2582 ワード
function page(){
$("#searchForm").attr("action","${ctx}/stat/businessChart/");
$("#searchForm").submit();
return false;
}
$(function () {
//categories
var categories = new Array(${categories});
var allNumSeries = new Array(${allNumSeries});
var webNumSeries = new Array(${webNumSeries});
var appNumSeries = new Array(${appNumSeries});
var wapNumSeries = new Array(${wapNumSeries});
//
$('#numContainer').highcharts({
scrollbar: {
enabled: true
},
credits: {
//
enabled: false
},
title: {
text: ' - ',
x: -20 //center
},
subtitle: {
text: '${paramMap.beginDate} ${paramMap.endDate}',
x: -20
},
xAxis: {
categories: categories
},
yAxis: {
title: {
text: ' '
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: ' '
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
name: ' ',
data: allNumSeries
}, {
name: ' WEB ',
data: webNumSeries
}, {
name: ' APP ',
data: appNumSeries
}, {
name: ' WAP ',
data: wapNumSeries
}]
});