[英]how to remove shadow on hover in highchart?
could you please tell me how to remove shadow on hover in highchart ? 你能告诉我如何消除海图上悬停的阴影吗? When I hover the any slice it give shadow .
当我将任何切片悬停时,它都会产生阴影。 here is my code http://jsfiddle.net/oupmgvjy/11/
这是我的代码http://jsfiddle.net/oupmgvjy/11/
$(function() {
$('#container').highcharts({
chart: {
type: 'pie'
},
credits: {
enabled: false
},
exporting: { enabled: false },
legend: {
align: 'right',
verticalAlign: 'top',
layout: 'vertical',
x: 0,
y: 100
},
title: {
text: 'Election'
},
yAxis: {
title: {
text: 'Total percent market share'
}
},
plotOptions: {
pie: {
series: {
states: {
hover: {
enabled: false
}
}
},
allowPointSelect: false,
cursor: 'pointer',
showInLegend: true,
dataLabels: {
format: '<b>{point.y}</b>',
style: {
fontWeight: 'bold',
color: 'white'
}
},
startAngle: 0,
endAngle: 270,
center: ['50%', '75%']
}
},
tooltip: {
enabled: false,
shadow: false
},
series: [{
showInLegend: false,
name: 'election result',
enabled: true,
dataLabels: {
enabled: false
},
data: [
['A', 55],
['B', 65],
],
size: '30%',
innerSize: '70%',
}, {
name: 'Versions',
data: [
['a', 55],
['b', 65],
['c', 65],
['d', 132],
],
size: '70%',
innerSize: '80%',
}]
});
});
in other words I need to remove shadow on hover .I already use shadow: false
换句话说,我需要移除悬停阴影。我已经使用了
shadow: false
What you want is achieved throug plotOptions -> series -> states -> hover. 通过plotOptions->系列->状态->悬停即可实现所需的功能。 You just have to add the next option inside plotOption:
您只需要在plotOption中添加下一个选项:
series: {states: {hover: {enabled: false}}},
Here you have the documentation . 这里有文档 。
Please, if this answer your question, mark it as solved :) 请,如果这回答了您的问题,请将其标记为已解决:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.