简体   繁体   中英

ApexCharts: overlapping tooltips with grouped charts

I am dynamically creating synchronized (grouped) charts in ApexCharts (I'm implementing a dashboard where all charts share their zoom), however each chart can contain a lot of datasets and the generated tooltips can grow quite tall, sometimes they can even overlap large parts of each other.

在此处输入图像描述

Is there any option or way to setup the charts to display only the tooltip of the chart my mouse cursor is currently hovering on (of course without turning off grouping/sync)?

Playing with the options in the tooltip section I couldn't find anything that does that.

Use this code on your tooltip option. It solved the problem.

tooltip: {
    enabled: true,
    shared: false,  
    y: {
        formatter: function (val) {
            return "$ " + val 
        }
    }},

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM