Get data from rest service using D3

后端 未结 3 771
暗喜
暗喜 2021-01-05 03:07

I have a working web service at http://localhost/RestService/GetTransactionByStatus/1. When I run that URL on my browser I\'m getting the correct JSON-formatted response:

3条回答
  •  离开以前
    2021-01-05 04:00

    As of d3 v5, this has become

        d3.json('http://localhost/RestService/GetTransactionByStatus/' + id)
          .then(function(data) {
            console.log(data.transactionConcil);
           });
    

提交回复
热议问题