Is there a way to automatically hide a data label if it is zero?
I am using a column chart.
(new here not sure what information I should post along with my question)
Code: Select all
plotOptions: {
column: {
dataLabels: {
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'black',
formatter: function(){
return (this.y!=0)?this.y:"";
}
}
}
}