score:0

Accepted answer

You can use chart.tooltip.options.formatter like:

chart.tooltip.options.formatter = function() {
    var xyArr=[];
    $.each(this.points,function(){
        xyArr.push('Serie: ' + this.series.name + ', ' +'X: ' + this.x + ', Y: ' +this.y);
    });
    return xyArr.join('<br/>');
}

Here's a fiddle

Here is more info on formating tooltips

score:0

I found it out

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'bar'
        },
        title: {
            text: ''
        },
        subtitle: {

        },
        xAxis: {
            categories: ['Question\'s'],
            title: {
                text: ''
            }
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Average Scores',

            },
            labels: {
                overflow: 'justify'
            }
        },
         tooltip: {formatter: function(){
        return 'The value for <b>' + this.y + '</b><br>Total Survey is <b>' + this.series.options.Credit[this.point.index] + '</b>';
    }

    },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true
                }
            }
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'top',
            x: 10,
            y: -10,
            floating: true,
            borderWidth: 1,
            backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'),
            shadow: true
        },
        credits: {
            enabled: false
        },
        series: [{
            name: 'My Issue',
            data: [5.4],
            Credit: [21]
        }, {
            name: 'My Knowledge',
            data: [8.2],
            Credit: [22]
        }, {
            name: 'My Friendliness',
            data: [7],
            Credit: [22]
        },
         {
            name: 'My time',
            data: [6],
            Credit: [22]
        },
        {
            name: 'Z Score',
            data: [9],
            Credit: [22],
            Credit: [22]
        }
        ]

    });
});

working fiddle here with two values: http://jsfiddle.net/bu5fs1Lj/3/


Related Query

More Query from same tag