I have retrieved data from c# web method in the form of lists, i need to populate the data in the form of a line chart using the D3 JavaScript library. How can i do that?
How do I use the list data in D3 and have the date time format in one list and the value in another list?
$.ajax({
url: "ServiceMessage.asmx/GetPostings",
type: "POST",
contentType:"application/json",
success: function (data) {
var myData = data.d;
var data1;
var data2;
alert(myData.length + " hellos");
for (var i = 0; i < myData.length; i++) {
// $("#divMsg").append(myData[i].date + " " + myData[i].values);
data1[i] = myData[i].date; "</br>"
data2[i] = myData[i].values; "</br>"
$("#divMsg").append(data1[i]+""+data2[i])
}
How can I use data1 data2 to populate a line graph?