Very simple tutorial example of D3.js not working

后端 未结 4 2265
小蘑菇
小蘑菇 2020-12-19 12:26

I\'m kind of new to D3.js. I\'m reading Getting Started with D3 by Mike Dewar. I tried the very first example in the book, and it doesn\'t work. I\'ve been tearing

4条回答
  •  再見小時候
    2020-12-19 12:55

    Well d.name and d.status are both arrays and should be just strings if you want to show their contents or yo should be accessing the 0 index value of those arrays; I.e., d.name[0] + ':' + d.status[0];

提交回复
热议问题