score:1

Accepted answer

if you remove space between text and number ,it will work fine

like instead

 <th>pears 222</th>

use

 <th>pears222</th>

but simillar fiddle is working even with space between string and number , so it could be an issue related to versions

score:0

add the following line to your code:

itemdelimiter: '</th>'

full code would be:

$(function () {
    $('#container').highcharts({
        data: {
            table: 'datatable',
            itemdelimiter:'</th>'
        },
        chart: {
            type: 'column'
        },
        title: {
            text: 'data extracted from a html table in the page'
        },
        yaxis: {
            allowdecimals: false,
            title: {
                text: 'units'
            }
        },
        tooltip: {
            formatter: function () {
                return '<b>' + this.series.name + '</b><br/>' +
                    this.point.y + ' ' + this.point.name.tolowercase();
            }
        }
    });
});

Related Query

More Query from same tag