我怎样才能在相同的highcharts悬停点颜色? [英] How can I have same hover point color in highcharts?

查看:172
本文介绍了我怎样才能在相同的highcharts悬停点颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有相同的悬停点色当点在悬停关闭状态。 Plunker链接这里

例如:成功的任务,我有绿色的点,使悬停还点颜色应该是绿色的,而是它变成蓝色。请帮助


code

  plotOptions:{
    ...
    系列:{
        光标:指示器,
        dataGrouping:{
            启用:假的
        },
        标记:{
            半径:4,
            状态: {
                悬停:{
                    填充颜​​色:空
                }
            }
        },
        turboThreshold 1000000
    }
},


解决方案

还有一个迂回到你的问题,你可以尝试这样的事情

  plotOptions:{
      ....
      系列:{
       光标:指示器,
       dataGrouping:{
         启用:假的
       },
       标记:{
         半径:4,
         状态: {
           悬停:{
             填充颜​​色:函数(){
               返回true;
             }
           }
         }
       },
       turboThreshold 1000000
     }
   },

I want to have same hover point color as when point was in hover off state. Plunker link here

For example: for success tasks I have green colored point so on hover also point color should be green but instead it turns blue. Please help

Code

plotOptions: {
    ...
    series: {
        cursor: 'pointer',
        dataGrouping: {
            enabled: false
        },
        marker: {
            radius: 4,
            states: {
                hover: {
                    fillColor: null
                }
            }
        },
        turboThreshold: 1000000
    }
},

解决方案

well as a roundabout to your problem you could try something like this

     plotOptions: {
      ....
      series: {
       cursor: 'pointer',
       dataGrouping: {
         enabled: false
       },
       marker: {
         radius: 4,
         states: {
           hover: {
             fillColor: function(){
               return true;
             }
           }
         }
       },
       turboThreshold: 1000000
     }
   },

这篇关于我怎样才能在相同的highcharts悬停点颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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