In Highcharts, I use the dataLabel formatter to return an empty string value for null values. This effectively hides the label for null values. However, on pie charts, there is a landmark pointing to each piece of the pie, even if the slice has a zero value. I cannot remove these recommendations without directly manipulating DOM elements. I would like to keep empty pieces of cake in the chart because I am dynamically updating the chart based on user-defined filter criteria, but I would like to hide the guidelines pointing to empty pieces of cake.
Does anyone know a way to configure Highcharts to remove recommendations that point to an empty piece of cake? I can clear the shortcut itself using the following format:
formatter: function () { var y = this.y; if (y == 0) return ""; ... }
source share