highcharts - disable fading series on marker hover

北战南征 提交于 2020-06-12 04:50:08

问题


I have multiple series in my chart area. When I hover on a marker of any series, the other background series' fade and become more transparent. I'm trying to disable that feature and have all series with full opacity at all times.


回答1:


You need to change the opacity property for a inactive state:

plotOptions: {
    series: {
        states: {
            inactive: {
                opacity: 1
            }
        }
    }
}

Live demo: http://jsfiddle.net/BlackLabel/wp46gdf7/

API Reference: https://api.highcharts.com/highcharts/series.column.states.inactive.opacity



来源:https://stackoverflow.com/questions/55595123/highcharts-disable-fading-series-on-marker-hover

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!