highcharts-禁用标记悬停时的淡入系列 [英] highcharts - disable fading series on marker hover

查看:445
本文介绍了highcharts-禁用标记悬停时的淡入系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的图表区域有多个系列.当我将鼠标悬停在任何系列的标记上时,其他背景系列会逐渐消失并变得更加透明.我正在尝试禁用该功能,并使所有系列始终处于完全不透明状态.

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.

推荐答案

您需要将opacity属性更改为inactive状态:

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

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


实时演示: http://jsfiddle.net/BlackLabel/wp46gdf7/

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

这篇关于highcharts-禁用标记悬停时的淡入系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆