How to pull data from mysql database and visualize with D3.JS?

后端 未结 6 603
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 03:16

I have a database in MySQL which I want to visualize in D3.JS. In order to do that, first I want to parse the data in JSON fo

6条回答
  •  情深已故
    2021-02-02 03:53

    To get d3.json to work, I had to call it the following way (my PHP file generates the JSON data):

    d3.json("InventoryData.php").then(function(data){
      console.log(data);
    });
    

提交回复
热议问题