When I select a legend item my input is hidden from a highcharts-container class with id = highcharts-2:
<input type="hidden" id="Chart1_legend" name="Chart1_legend" value="[{"value":true,"name":"1"}]">
Anyway to default in this attribute? Was trying this:
$(document).ready(function() {
$(#Chart1).highcharts().series[1].update({
showInLegend: false
});
})
Chart with all elements shown:
Chart with the first element hidden:
First element hidden after legend selection
question from:https://stackoverflow.com/questions/65713124/trying-to-default-a-legend-value-as-hidden-using-logi-info