Disable Click in legend

If you would like to show the legend whilst stopping the click action for toggling a series visibility, this can be done in everviz using the custom code panel. 

The following shows this concept. Notice that when you click on the legend (2020 population), nothing happens; the chart does not hide the bars.

To achieve this:

1. Open the custom code tab under the customize area

2. Copy in the following code:

Highcharts.merge(true, options, {
   legend: {
        events: {
            itemClick: function () {
                    return false;                
            }
        }
    },
});
Did you find what you were looking for? Thank you! There was a problem submitting your feedback. Please try again later.