Chartjs-How to replace data value(js) with a datatable value?

0👍

Take a look at the DataTables API

To get the data from behind the DataTable:

var dtapi = $('#node_containing_datatable').DataTable();
var dtdata = dtapi.data(); // this is a ref to the DT API
var dtdata_array = dtdata.toArray(); // this is a real javascript Array

Leave a comment