YouTip LogoYouTip

Highcharts Column Table

Highcharts Column Chart with HTML Table Data
$(document).ready(function() { var data = { table: 'datatable' }; var chart = { type: 'column' }; var title = { text: 'Reading Data from an HTML Table on the Web Page' }; var yAxis = { allowDecimals: false, title: { text: 'Units' } }; var tooltip = { formatter: function () { return '' + this.series.name + '
' + this.point.y + ' ' + this.point.name.toLowerCase(); } }; var credits = { enabled: false }; var json = {}; json.chart = chart; json.title = title; json.data = data; json.yAxis = yAxis; json.credits = credits; json.tooltip = tooltip; $('#container').highcharts(json); });
JaneJohn
Apples34
Pears20
Plums511
Bananas11
Oranges24
Try it yourself Β» The output of the above example is: Highcharts Column Chart Highcharts Bar Chart Highcharts Pie Chart
← Highcharts Bar ChartsHighcharts Area Range β†’