• HI,
    I use piepercent and you used first line of te table for data value.
    Is it possible to use data Footer line of the table ?
    Because we used filter and i can’t use the first line.
    I use sum of column display on the table footer (without text “Total” just number).
    Like Test3
    Screenshot column Sum

    Best regards
    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author silsha

    (@silsha)

    Hi Eric,

    So I understand this correctly: You want to you the first row of your table as label and the last row as value for your chart?

    This is currently not possible, but I understand why that would be useful. I’ll try to implement this soon. I’ve opened an issue at github: https://github.com/silsha/tablepress_chartist/issues/10

    Thread Starter ericc44

    (@ericc44)

    Hi Silsha,
    thank you for a solution.
    Just more information :
    – Yes I want the first row of table as label ‘table_head’, that now is OK
    – and the last row (Footer) as value for PiePercent chart ‘table_footer’
    but i add the footer data to Tablepress with
    "dom": "WBlfirtip", "footerCallback": function( row, data, start, end, display ) { var api = this.api(), data; var intVal = function ( i ) { return typeof i === 'string' ? i.replace(/[\$,]/g, '')*1 : typeof i === 'number' ? i : 0; }; totalModele = api .column( 3, { page: 'current'} ) .data() .reduce( function (a, b) { return intVal(a) + intVal(b); }, 0 ); totalListe = api.column( 4, { page: 'current'} ).data().reduce( function (a, b) { return intVal(a) + intVal(b); }, 0 ); totalValeur2 = api .column( 5, { page: 'current'} ) .data() .reduce( function (a, b) { return intVal(a) + intVal(b); }, 0 ); $( api.column(3 ).footer() ).html( totalModele ); $( api.column(4 ).footer() ).html( totalListe ); $( api.column(5 ).footer() ).html( totalValeur2 ); $( api.column( 2 ).footer() ).html('Total'); }

    Another suggest is it possible to have information over the mousse pointer like GoogleChart Displays tooltips when hovering over slices.
    GoogleChart
    Displays tooltips when hovering over slices.

    Or is it possible to use data TablePress with GoogleChatrs function ?

    Thanks
    Best regards
    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using data footer line for Piepercent’ is closed to new replies.