Highchart - a tip for legends

I use highcharts to represent data. In my conditional diagram, some series are disabled.

Can I remove a legend property itemhoverstylefor a disconnected series?

Is there a way to add tooltip to legend items?

+3
source share
1 answer

You can remove a series from a legend :

series:[{
    name: 'serie1',
    type: 'line',
    data: yourArrayOfData,
    showInLegend: false
}]

If you want to change the css on hover, you will have to change this style of the high chart legend.

To add a hint to the legend, do something like the following example: Link

+4
source

All Articles