score:22

Accepted answer

just try formatting the data label on a column chart, here is an example to get you started.

 $(function () {
        $('#container').highcharts({
            chart: {
                type: 'column'
            },
            xaxis: {
                categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']
            },

            plotoptions: {
                series: {
                    datalabels: {
                        enabled: true,
                        color: '#000',
                        style: {fontweight: 'bolder'},
                        formatter: function() {return this.x + ': ' + this.y},
                        inside: true,
                        rotation: 270
                    },
                    pointpadding: 0.1,
                    grouppadding: 0
                }
            },

            series: [{
                data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
            }]
        });
    });

score:5

really, what this case calls for, is for this to be a bar instead of a column, and category labels that are not rotated, and are clearly readable.

example:

http://jsfiddle.net/jlbriggs/yplvp/23/

you can also offset the axis labels to put category name on the bar itself, but really - it's just not as good a way to display as the above example:

http://jsfiddle.net/jlbriggs/yplvp/24/

these could both be a column instead of a bar still, of course, but rotating the labels is always a bad idea if it can be avoided.

these methods also allow the data label to still be used as a data label should that ever be required.


Related Query

More Query from same tag