I want to show "N/A" in a column chart, when the data is null. This is what I am currently trying to do: http://jsfiddle.net/90amxpc1/1/
dataLabels: {
formatter: function () {
if (this.y == null) {
return "N/A";
}
else {
return this.y;
}
}
}
But, its not working. What I want to achieve is similar to the accepted Answer to this Question: Highcharts: Returning N/A value instead of 0% in data label or this fiddle: http://jsfiddle.net/v5vJR/3/
I tried modifying it for the column chart, but it doesnt works out.
There is just different logic for bar (inverted chart) and column chart, example for column:
Live demo: http://jsfiddle.net/90amxpc1/4/
Note:
You may want to store
text
variable to remove that text when hiding series or zooming into the chart.