score:0

Accepted answer

This seems to do the trick ...

    xAxis: {                

                tickInterval: 23,
                tickmarkPlacement: 'on',
                labels: {
                            style: {
                                        fontSize: '8px',
                                        fontFamily: 'Verdana, sans-serif'
                                    },
                            formatter: function() {
                                if (this.isFirst){
                                    return 0;
                                } else {
                                    return (this.value / 23);
                                }
                            }
                        },
            },

score:2

The categories are numbered from 0 to length of array. Setting 46 as tickInterval, means that you select first index and 46 index of categories array. So better is remove categories, and use numbers.


Related Articles