Paul
Paul

Reputation: 1

highchart : Add the series name on the column chart

I need to have the series name printed on each column. Right now you can only print the value of the column as a label. http://jsfiddle.net/mVxGz/

Any ideas on how to do that?

    plotOptions: {
        series: {
            dataLabels: {
                align: 'left',
                enabled: true,
                rotation: 270,
                inside: true
            }
        }
    }

Upvotes: 0

Views: 116

Answers (1)

wergeld
wergeld

Reputation: 14442

This can be done via the formatter. For example:

            formatter: function () {
                return this.series.name + ' - ' + this.y;
            }

Upvotes: 1

Related Questions