问题
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