It is currently Mon Sep 24, 2018 6:50 am Advanced search

Highcharts -> data ->table

Support and discussion for cloud.highcharts.com.

Highcharts -> data ->table

Postby Sreedharprabhu » Fri Aug 31, 2018 8:19 pm

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
Sreedharprabhu
 
Posts: 2
Joined: Fri Aug 31, 2018 2:22 pm

Re: Highcharts -> data ->table

Postby wojtek » Mon Sep 03, 2018 9:10 am

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
wojtek
 
Posts: 296
Joined: Tue Jul 03, 2018 2:32 pm

Re: Highcharts -> data ->table

Postby Sreedharprabhu » Thu Sep 06, 2018 10:53 am

Awesome and thanks a lot Wojciech.
Sreedharprabhu
 
Posts: 2
Joined: Fri Aug 31, 2018 2:22 pm

Re: Highcharts -> data ->table

Postby wojtek » Thu Sep 06, 2018 11:53 am

You're welcome :wink:
Wojciech Chmiel
Highcharts Developer
wojtek
 
Posts: 296
Joined: Tue Jul 03, 2018 2:32 pm


Return to Highcharts Cloud

Who is online

Users browsing this forum: No registered users and 0 guests