Can we use DataTables in conjunction with HighCharts js library ?
Can we use DataTables in conjunction with HighCharts js library ?
Hi,
I am trying to show a data table(using DataTables library) when a bar on a bar plot(rendered using HighCharts js library) is clicked. The function which we embed to be triggered when a bar is clicked should be written in JavaScript. I wrote the required function in which the DataTable should be invoked. I am passing the array data to the DataTable. All my headers are included perfectly and data is also being passed(I checked using console.log function). But when the page is rendered and the bar is clicked, the javascript console gives the nTable is null error.
So, my question is can we use those the above mentioned libraries in conjunction like I described above or not ?
This question has an accepted answers - jump to answer
Answers
I don't see any reason why HighCharts can't be used in conjunction with DataTables as you describe. It is just a case of using the correct APIs and events.
Can you post a link to the page, as required in the forum rules, so we can debug it please.
Allan
Hi Allan,
Thank You for your response. I fixed the problem. I have not mentioned the
<
table> tag in my code. Now its running fine.