Google饼图工具提示在该特定工具提示上的鼠标悬停事件上不断闪烁,并且在Google Charts工具提示闪烁中没有任何解决方案
<div id="chart" class="gchart" align='center'></div>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
function init() {
google.charts.load('current', {
'packages': ['corechart', 'line']
});
google.charts.setOnLoadCallback(drawChart);
}
function drawChart() {
var rankData = [];
rankData.push(['Task', 'Rank']);
rankData.push(['1' , 2]);
rankData.push(['2' , 2]);
rankData.push(['3' , 2]);
rankData.push(['4' , 2]);
rankData.push(['5' , 2]);
var data = google.visualization.arrayToDataTable(rankData);
var options = {
legend: {
position: 'labeled',
textStyle: {
bold: true
}
},
pieSliceText: 'none',
width: $(window).width() * 0.4,
height: $(window).height() * 0.7,
chartArea: {
width: '85%',
height: '75%'
},
pieSliceBorderColor: "transparent",
};
var chart = new google.visualization.PieChart(document.getElementById('chart'));
chart.draw(data, options);
}