可以我們添加在hightcharts懸停效果(圓環圖)..Can我們添加在圓環圖在給定的URL所示懸停效果如何在hightcharts中添加懸停效果?
http://c3js.org/samples/chart_donut.html
請檢查上面的鏈接和懸停任何切片。它暗所選切片和灰色出傳說中的另一個作爲同樣的效果
可我們highcharts
這裏做的是代碼 http://jsfiddle.net/sk0603wj/
$(function() {
Highcharts.chart('container', {
chart: {
plotBackgroundColor: null,
plotBorderWidth: 0,
plotShadow: false
},
title: {
text: 'Browser<br>shares<br>2015',
align: 'center',
verticalAlign: 'middle',
y: 40
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
dataLabels: {
enabled: true,
distance: -50,
style: {
fontWeight: 'bold',
color: 'white'
}
},
startAngle: -90,
endAngle: 90,
center: ['50%', '75%']
}
},
series: [{
type: 'pie',
name: 'Browser share',
innerSize: '50%',
data: [
['Firefox', 10.38],
['IE', 56.33],
['Chrome', 24.03],
['Safari', 4.77],
['Opera', 0.91],
{
name: 'Proprietary or Undetectable',
y: 0.2,
dataLabels: {
enabled: false
}
}
]
}]
});
});