d3 is not defined - ReferenceError

后端 未结 11 1324
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 07:46

I am trying to use a \"fancy graph\" found at http://bl.ocks.org/kerryrodden/7090426:

\"enter

11条回答
  •  攒了一身酷
    2020-12-08 08:29

    Super late to this response but none of the above solutions worked out for me. I found a fix though!

    I am on macOS Catalina. For some bizarre reason, it turned out to be a decompression/unpack issue with the .tgz file from Observable's website. I use an application called The Unarchiver to decompress files, but in this case, the .tgz file did not properly unpack. There was a folder and file missing compared to a friend's computer not using the same program.

    Solution: I unpacked .tgz without a third party program – just used macOS (simply double clicking on the file). Then, I loaded the page locally and it worked!

    If double clicking on the file fails to unpack, try running tar -xzf filename.tgz in Terminal.

提交回复
热议问题