title: How do I post parameter on d3.json?
body: <p>I'm using d3.json to get a dynamic data.</p>
  
  <pre><code>d3.json("/myweb/totalQtyService.do", function(json) {
  
      drawChart(json);
  });
  </code></pre>
  
  <p>How do I  post parameter on d3.json? 
  i.e. </p>
  
  <p>data : {
   year: "2012",
   customer: "type1“
  }</p>
  
  <p>Any idea pass those parameter on post? not url parameter /myweb/totalQtyService.do?year=2012&amp;customer=type1</p>
  
  <p>I tried such below, but couldn't make it work. because the data structure so different</p>
  
  <p>d3.json => [Object, Object, Object, Object]</p>
  
  <p>$.ajax => {entity_name: "ACTIVA"entity_tar_val: 350entity_val: 400level: 1_<em>proto</em>_: Object},...</p>
  
  <pre><code>$.ajax({ 
    type: "POST", 
    url: url,
  
    // parameter here
    data : {year: "2012", customer: "type1“},
    success: function(json){
         // console.log(json);
         **drawChart(json);**
    } ,
    error:function (request, err, ex) {
    }
   });
  </code></pre>