function zdATu() {
var chart = Highcharts.chart('zdTu', {
title: {
text: '重点工作'
},
chart:{
height:280
//width:300
},
exporting: {
enabled:false
},
tooltip: {
headerFormat: '{series.name}<br>',
pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
},
showInLegend: true // 设置饼图是否在图例中显示
}
},
colors:[
'#2cbf4d',//第一个颜色,欢迎加入Highcharts学习交流群294191384
'#ecb60c',//第二个颜色
'#d83617'//第三个颜色
],
series: [{
type: 'pie',
name: '重点工作比例',
data: [
{
name: '完成',
y: listDept[0].comNum+1,
sliced: true, // 默认突出
selected: true // 默认选中
},
//['完成', listDept[0].comNum+1],
['未完成', listDept[0].unComNum],
['逾期', listDept[0].yqNum]
]
}]
});
}
var chart = Highcharts.chart('zdTu', {
title: {
text: '重点工作'
},
chart:{
height:280
//width:300
},
exporting: {
enabled:false
},
tooltip: {
headerFormat: '{series.name}<br>',
pointFormat: '{point.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
},
showInLegend: true // 设置饼图是否在图例中显示
}
},
colors:[
'#2cbf4d',//第一个颜色,欢迎加入Highcharts学习交流群294191384
'#ecb60c',//第二个颜色
'#d83617'//第三个颜色
],
series: [{
type: 'pie',
name: '重点工作比例',
data: [
{
name: '完成',
y: listDept[0].comNum+1,
sliced: true, // 默认突出
selected: true // 默认选中
},
//['完成', listDept[0].comNum+1],
['未完成', listDept[0].unComNum],
['逾期', listDept[0].yqNum]
]
}]
});
}
解决方案 »
- 求前端高手。。。浏览器视图缩小的时候怎样也使它的字体缩小????
- 求JS查找字符串正则表达式
- jquery this对象获取问题,高手帮忙!!!
- Submit问题求助!!!!!
- 用层模拟的窗口
- 如何遍历所有页面上的元素?
- 我用window.open("xxx.asp","", "...,fullscreen=yes,...")全屏打开个页面.页面里的body用onload="top.resizeTo(300,200);"怎么不起作用
- 在javascript中实现一个正则效验?
- 怎样用jscript实现a页面刷新b页面
- 图片切换????????????????????????
- easyui validatebox 插件如何重新绑定一下鼠标移入事件?
- 网页实现图片滚动
HighCharts点击柱形或饼块加URL或Click事件