运行Event-drops演示 [英] Running the Event-drops demo
问题描述
我正试图在Windows机器上运行一个名为 Event-Drops 的d3.js库. .具体来说,我想运行演示,并通过调整来了解其全部工作原理一次一件事.
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.
现在,事件删除的github自述文件已包含如何执行操作的说明,但我无法与他们取得任何联系.建议您首先安装相关的依赖项.我对JavaScript领域还不是很陌生,根据我的理解,依赖项需要安装nodejs和npm安装d3?本地安装还是全局安装?
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
如果正确理解,哪一个在Windows下很难安装?我还安装了XAMPP,我认为我需要在本地服务器上运行演示吗?
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?
任何帮助将不胜感激!
推荐答案
除非您想做出贡献,否则不需要Node来玩EventDrops(这非常棒……是的,我是核心维护者.) :p)
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)
您可以使用相关的JSFiddle 进行测试,也可以将其直接包含在您的JSFiddle中.页面,例如:
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.
这篇关于运行Event-drops演示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!