Click here to Skip to main content
15,910,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,
 
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,

function createSSFeed(ajaxResponseList, i) {  
       //var json = JSON.parse(JSON.stringify(gameList));  
       //console.log(json.creator_id);  
       var divCrDate = "<div class='row' style='width: 100%; background-color: 
                        #fff;border-bottom:2px dashed #d0d0d0;border-top:none;'>";  
       divCrDate += "<div class='row'>"  
       divCrDate += "<div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'>"  
       divCrDate += "<img width='100%' src='src' alt=''>";  
       
       divCrDate += "<label ID='lbl_Date'>" + ajaxResponseList.sso_title + "</label>";  
       divCrDate += "</div>";  
       divCrDate += "<div class='col-lg-6 col-md-6 col-sm-6 col-xs-12'>"  
       divCrDate += "<div id='basicflot' class='flotGraph'></div>";  
       divCrDate += "</div>";  
       divCrDate += "</div>";  
       divCrDate += "</div>";  
       return divCrDate;  
   }  

Thanks.


What I have tried:

I have tried chart js
but didn't work.
Posted
Updated 29-Nov-17 2:25am
Comments
ZurdoDev 29-Nov-17 8:18am    
This is a function that just creates a string of html but then does nothing with it.
kp564 29-Nov-17 8:30am    
Setting it in div.The rest code is working well but could not have clue about ploting graph i have simply coded float-chart js
ZurdoDev 29-Nov-17 8:44am    
What do you want from us? All you posted is a function that creates some html in a string. Nothing more.
kp564 29-Nov-17 9:30am    
on
last 4-th line i want to display graph.
And in x axis there should be date and on y axis int count.
ZurdoDev 29-Nov-17 9:42am    
Are you using a jquery plugin to do graphing? If so, refer to that documentation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900