chartOptions: {
chart: {
width: 380,
type: 'pie',
},
labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E'],
responsive: [{
breakpoint: 480,
options: {
chart: {
width: 200
},
}
}],
legend: {
show: true,
onItemClick: {
toggleDataSeries: true
},
onItemHover: {
highlightDataSeries: true,
},
},
tooltip: {
enabled: true,
},
},
我需要在悬停图例时启用默认工具提示
我在文档中找不到它,4年前的一个问题至少提到它没有实施计划:https://github.com/apexcharts/apexcharts.js/issues/772
显然 Apexcharts 不提供它。但您可以在这里找到解决方法:[https://stackoverflow.com/questions/63061149/how-to-show-legend-tooltip-when-hover-on-legend-series-in-apexcharts-js][ 1]