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: 1Questions: 1Answers: 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

Answers

  • sandysandy Posts: 224Questions: 0Answers: 67

    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

Sign In or Register to comment.