Highstock linewidth

I want to set my lineWidth chart, but it has strange behavior.

On the mouse above this, it turns into lineWidth: 2 (by default), and when you mouse out, it turns into my lineWidth setting.

plotOptions:{ series:{ lineWidth: 5 } }, 

What is the problem?

Demo: http://jsfiddle.net/bahar_Agi/HePx3/2/ Thanks

+4
source share
2 answers

Yes there is. As I said, you can configure the state as described in the API.

See http://jsfiddle.net/HePx3/4/

  plotOptions: { series: { lineWidth: 5, states: { hover: { enabled: true, lineWidth: 5 } } } } 
+6
source

This is because there are states in the diagram. In this case, the hang state with the default value lineWidth: 2px.

You can disable the state or configure it, see http://jsfiddle.net/HePx3/3/

  plotOptions: { series: { lineWidth: 5, states: { hover: { enabled: false } } } }, 

For API, see http://api.highcharts.com/highcharts#plotOptions.line.states.hover

0
source

All Articles