Running the Event-drops demo

北战南征 提交于 2020-01-06 06:56:09

问题


I am trying to get a d3.js library called Event-Drops working under a windows machine. Specifically, I want to run the demo and learn how it all works by tweaking one thing at a time.

Now, the github readme for event-drop has instructions to how to do so but I am unable to get anywhere with them. It recommends you install the relevant dependencies first. I am fairly new to the world of JavaScript and according to what I understand the dependencies would require installation of nodejs and a npm install of d3? Local or global install?

Secondly, the install instructions require you to run

make install
make run

which if understand correctly are fairly difficult to install under windows? I also have XAMPP installed which I assume I need to run the demo on a local server?

Any help would be much appreciated!


回答1:


You don't need Node to play with EventDrops, unless you want to contribute (which would be great... yes, I'm a core maintainer. :p)

You can test it without Node either with the related JSFiddle or by including it directly in your page such as:

<link href="https://unpkg.com/event-drops/dist/style.css" rel="stylesheet" />

<script src="https://unpkg.com/d3"></script>
<script src="https://unpkg.com/event-drops"></script>

You should then be able to test it using demo code as inspiration for instance.



来源:https://stackoverflow.com/questions/49524807/running-the-event-drops-demo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!