title: using dynamic list data in d3.js
body: <p>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?</p>
  
  <p>How do I use the list data in D3 and have the date time format in one list and the value in another list?</p>
  
  <pre><code> $.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 &lt; myData.length; i++) {
                 // $("#divMsg").append(myData[i].date + " " + myData[i].values);
                   data1[i] = myData[i].date; "&lt;/br&gt;"
                    data2[i] = myData[i].values; "&lt;/br&gt;"
                   $("#divMsg").append(data1[i]+""+data2[i])
              }
  </code></pre>
  
  <p>How can I use data1 data2 to populate a line graph?</p>