How to render linecharts on one column in the datatable

How to render linecharts on one column in the datatable

bubby248bubby248 Posts: 6Questions: 4Answers: 0
edited May 2016 in Free community support

How to render flot linecharts on one column in the datatable

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,794Questions: 1Answers: 10,513 Site admin
    Answer ✓

    You might be best using columns.createdCell to inject the require content into the cell and initialise the chart inside it.

    Allan

  • bubby248bubby248 Posts: 6Questions: 4Answers: 0
    edited May 2016

    Thanks Allan.I used created cell and plotted the graph inside.And for render I returned empty.Its working fine.Thank you

      "targets": 3,
               "createdCell": function (td, cellData, rowData, row, col) {
                 var place = jQuery("<div></div>", {
                                "class": "bar-chart-bar"
                            }).append(function(){
    
                            
                            var chartData1 = jQuery.plot(this,[d2])
                            
    
                      }).appendTo(jQuery(td));
               },
               "render": function ( data, type, row ,meta) {
                return "";
               },
    

    Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

This discussion has been closed.