Can we use DataTables in conjunction with HighCharts js library ?

Can we use DataTables in conjunction with HighCharts js library ?

shiva199221shiva199221 Posts: 2Questions: 1Answers: 0

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

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Answer ✓

    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

  • shiva199221shiva199221 Posts: 2Questions: 1Answers: 0
    edited July 2015

    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.

This discussion has been closed.