79311482

Date: 2024-12-27 09:58:59
Score: 1
Natty:
Report link

Instead of using a categorized axis, I'd recommend using a numerical axis and assigning the appropriate categories using the labels.formatter() function callback.

yAxis: [{
    tickPositions: [0, 1, 2],
    labels: {
        formatter: function () {
            const categories = ["Low", "Medium", "High"];
            return categories[this.value];
        }
    }
}]

Demo: https://jsfiddle.net/BlackLabel/58xwtcaj/

API: https://api.highcharts.com/highcharts/yAxis.labels.formatter

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jedrzejruta