简体   繁体   English

高图堆积区:图例悬停事件

[英]Highcharts Stacked Area: legend hover event

I am working on a chart that has a very large number of series in a stacked area. 我正在处理在堆积区域中具有大量序列的图表。

It looks like there is some sort of event being fired whenever the mouse hovers over a series in the legend. 看起来每当鼠标悬停在图例中的系列上时,都会触发某种事件。 The default seems to be to make the line at the top of the stacked area a bit thicker. 默认情况似乎是使堆叠区域顶部的线稍粗。 Unfortunately, this is very hard to interpret in the plot I am working on. 不幸的是,这在我正在研究的情节中很难解释。 It would be much more beneficial if the color of the area changed- even just going from translucent to fully opaque. 如果该区域的颜色发生了变化,甚至只是从半透明变为完全不透明,那将更加有益。

Is this possible? 这可能吗? If so, How? 如果是这样,如何?

You can define color like this 您可以这样定义颜色

states: {
  hover: {
    color: 'rgba(68, 188, 93, 1)'
  }
}

in each series. 在每个系列中。

Example (Bar Chart) - http://jsfiddle.net/tosx33ae/1/ 示例(条形图) -http://jsfiddle.net/tosx33ae/1/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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