Highcharts Column Chart Using HTML Table Data
The following example demonstrates a column chart using HTML table data.
We learned the basic Highcharts configuration syntax in the previous chapters. Now let's look at some other configurations. Add the table configuration under data.
data
The data module provides some simple interfaces for adding data; we can use data from sources such as CVS, HTML tables, or grid views.
data.table
Set an id in the HTML table and correspond it to the data.table parameter to parse the data. The relevant configuration options are startRow, endRow, startColumn, and endColumn.
data: {
table: 'dataTable'
}
Example
Filename: highcharts_column_table.htm
Highcharts 教程 | Runoob Tutorial(runoob.com)
Jane John
Apples 3 4
Pears 2 0
Plums 5 11
Bananas 1 1
Oranges 2 4
The output of the above example is:
Highcharts Column Chart