Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highstock lineWidth

Tags:

highcharts

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

On mouse over it turns into lineWidth:2(default) and when mouse outs it turns into my lineWidth setting.

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

What's the problem?

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

like image 847
bahar_Agi Avatar asked Feb 17 '23 21:02

bahar_Agi


1 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
                }
            }
        }
    } 
like image 199
Nina Avatar answered Feb 19 '23 11:02

Nina