Sreedharprabhu
Posts: 2
Joined: Fri Aug 31, 2018 12:22 pm

Highcharts -> data ->table

Hi,
For COLUMN chart "data" -> "table" instead of "id" need to pass html table data.
I tried to pass html table data, but chart is not rendering. Kindly suggest is there any thing missing ?
Ref : https://jsfiddle.net/769s0ehx/6

Ref : https://api.highcharts.com/highcharts/data.table
"A HTML table or the id of such to be parsed as input data".

Thanks in advance
wojtek
Posts: 433
Joined: Tue Jul 03, 2018 12:32 pm

Re: Highcharts -> data ->table

Hi Sreedharprabhu,

The chart in your example is not rendered because you are providing string table instead of HTML table element. API description "table: String, HTMLElement" - string refers to element id, HTMLElement to html (DOM) table element.

However, you can use the solution I prepared you in the example posted below.

Api reference: https://api.highcharts.com/highcharts/data.table
Exmaple: https://jsfiddle.net/wchmiel/js62mwaq/

Kind regards.
Wojciech Chmiel
Highcharts Developer
Sreedharprabhu
Posts: 2
Joined: Fri Aug 31, 2018 12:22 pm

Re: Highcharts -> data ->table

Awesome and thanks a lot Wojciech.
wojtek
Posts: 433
Joined: Tue Jul 03, 2018 12:32 pm

Re: Highcharts -> data ->table

You're welcome :wink:
Wojciech Chmiel
Highcharts Developer

Return to “Highcharts Cloud”