Ketan Hirapara

Ketan Hirapara

  • NA
  • 354
  • 6.6k

how to Dynamically generate div have graph using jquery/js

Nov 29 2017 6:51 AM
Hello,
 
I am creating  dynamically generated divs using js.
it conatins graph and i was unable to display it.
 
can anyone help on same?
 
here is my jquey code,
 
  1. function createSSFeed(ajaxResponseList, i) {  
  2.        //var json = JSON.parse(JSON.stringify(gameList));  
  3.        //console.log(json.creator_id);  
  4.        var divCrDate = "<div class='row' style='width: 100%; background-color: #fff;border-bottom:2px dashed #d0d0d0;border-top:none;'>";  
  5.        divCrDate += "<div class='row'>"  
  6.        divCrDate += "<div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'>"  
  7.        divCrDate += "<img width='100%' src='src' alt=''>";  
  8.        
  9.        divCrDate += "<label ID='lbl_Date'>" + ajaxResponseList.sso_title + "</label>";  
  10.        divCrDate += "</div>";  
  11.        divCrDate += "<div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'>"  
  12.        divCrDate += "<div id='basicflot' class='flotGraph'></div>";  
  13.        divCrDate += "</div>";  
  14.        divCrDate += "</div>";  
  15.        divCrDate += "</div>";  
  16.        return divCrDate;  
  17.    }  
 
 Above code works fine but how to plot the graph in this code.
 
 
 
Thanks in advance. 
ketan. 
 

Answers (2)