Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Highcharts Column Chart Using HTML Table Data

Highcharts Column Chart Using HTML Table Data

Highcharts Column ChartHighcharts Column Chart

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)

   

     

        





JaneJohn
Apples34
Pears20
Plums511
Bananas11
Oranges24

The output of the above example is:

Highcharts Column ChartHighcharts Column Chart