日期:2014-05-16 浏览次数:20434 次
var chart2;
chart2 = new Highcharts.Chart({
chart: {
backgroundColor: '#3C3C3C',
renderTo: 'container2',
type: 'bar'
},
title: {
text: title,
style: {
color:'#FFFFFF'
}
},
xAxis: {
categories: x_value,
title: {
text: x_title,
style: {
color:'#FFFFFF'
}
},
labels:{
style: {font: 'normal 10px 宋体',
color:'#FFFFFF'
}
}
},
yAxis: {
min: 0,
title: {
text: y_title,
align: 'high',
style: {
color:'#FFFFFF'
}
},
labels:{
style: {font: 'normal 10px 宋体',
color:'#FFFFFF'
}
}
},
tooltip: {
enabled: false,
formatter: function() {
return ''+
this.series.name +': '+ this.y;
}
},
plotOptions: {
bar: {
color:'#EA7500',
dataLabels: {
enabled: false
}
}
},
credits: {
enabled: false
},
series: [{
name: kpi_name,
data: y_value,
}]
});