I am trying to create Highchart, where I want to format the legend. Documentation says - "Callback function to format each of the series' labels. This keyword refers to the series object or the point object in case of pie charts. By default, the series or point name is printed."
But when we try to use it it gives an error - "Highchart property 'name' does not exist on type 'LegendOptions'"
Code -
legend: {
itemWidth: 150,
itemMarginTop: 20,
symbolPadding: 20,
symbolRadius:200,
labelFormatter: function () {
return (this.name + '(Click Here)');
}
Any input on the same?