highcharts 柱状图与折线图源码:
< src=\"http://code.jquery.com/jquery-1.9.1.min.js\"></ >
< src=\"http://code.highcharts.com/highcharts.js\"></ >
< src=\"http://code.highcharts.com/modules/exporting.js\"></ >
< type=\"text/ \" src=\"http://sandbox.runjs.cn/uploads/rs/353/cbcvzss3/grouped-categories.js\"></ >
<div id=\"container\" style=\"min-width: 310px; height: 400px; margin: 0 auto\"></div>
< >
$(function() {
$(\'#container\').highcharts({
chart: {
type: \'\'
},
: {
text: \'\'
},
credits: {
text: \'\'
},
xAxis: {
labels: {
//align : \'center\',
rotation: 90,
//staggerLines: 2,
//step : 2,
style: {
color: \'#6D869F\',
fontWeight: \'bold\'
}
},
categories: [\'2014年1月\', \'2014年2月\', \'2014年3月\', \'2014年4月\', \'2014年5月\', \'2014年6月\', \'2014年7月\', \'2014年8月\', \'2014年9月\', \'2014年10月\', \'2014年11月\', \'2014年12月\'],
},
yAxis: {
min: 0,
: {
text: \'项次\'
}
},
tooltip: {
formatter: function() {
return \'<b>\'+ this.x +\'</b><br/>\'+
this.series.name +\': \'+ this.y +\'<br/>\'
//+\'Total: \'+ this.point.stackTotal;
}
},
plotOptions: {
column: {
//stacking: \'normal\',
pointPadding: 0,
borderWidth: 0
}
},
series: [{
name: \'已完成\',
type: \'column\',
color: \'blue\',
data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
},
{
name: \'所有\',
type: \'column\',
color: \'red\',
data: [83.6, 78.8, 98.5, 93.4, 106.0, 84.5, 105.0, 104.3, 91.2, 83.5, 106.6, 92.3]
},{
name: \'已完成\',
type: \'line\',
color: \'blue\',
// edTo : \'previous\',
data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
},{
name: \'所有\',
type: \'line\',
color: \'red\',
// edTo : \'previous\',
data: [83.6, 78.8, 98.5, 93.4, 106.0, 84.5, 105.0, 104.3, 91.2, 83.5, 106.6, 92.3]
}]
});
});
</ >
继续阅读与本文标签相同的文章
上一篇 :
5分钟搞懂Linux中直接I/O原理
下一篇 :
Vim 和 NeoVim 文本编辑器曝出高危漏洞
-
Intel独立显卡2020年中发布:首发10nm 次年7nm
2026-05-15栏目: 教程
-
Python 的高级特征你知多少?来对比看看
2026-05-15栏目: 教程
-
5G时代:5G已经到来,4G会很快成为过去吗?
2026-05-15栏目: 教程
-
程序员占领相亲市场,程序员多次相亲都无果看看这个你就懂了!
2026-05-15栏目: 教程
-
行业发展趋势明朗,三类药企或有未来
2026-05-15栏目: 教程
