how to retrieve filtered data to use it for chartJs for example

how to retrieve filtered data to use it for chartJs for example

ewayeway Posts: 3Questions: 2Answers: 0

by recovering in the following way I recover all the lines while I only want those which result from searches (filters)

dtt.rows().every( function () {
var d = this.data();
} );

thank you

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @eway,

    You can just use rows().data() and pass rows() a selector-modifier to get it to return only the rows that are returned from the search. Something like table.rows({"search":"applied"}).data().

    Hope this helps,
    Sandy

This discussion has been closed.