vue js 的 Apex 图表启用图例系列的工具提示

问题描述 投票:0回答:2

在 Apex 饼图中,我需要在将鼠标悬停在图例上时启用默认工具提示,如何执行此操作。

            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,
                },
            },

我需要在悬停图例时启用默认工具提示

vue.js apexcharts
2个回答
0
投票

我在文档中找不到它,4年前的一个问题至少提到它没有实施计划:https://github.com/apexcharts/apexcharts.js/issues/772


0
投票

显然 Apexcharts 不提供它。但您可以在这里找到解决方法:[https://stackoverflow.com/questions/63061149/how-to-show-legend-tooltip-when-hover-on-legend-series-in-apexcharts-js][ 1]

© www.soinside.com 2019 - 2024. All rights reserved.