epochjs / epoch

A general purpose, real-time visualization library.
http://epochjs.github.io/epoch
MIT License
4.97k stars 278 forks source link

Seems to require jQuery, yet doesn't seem explicit about it #238

Closed kbadk closed 3 years ago

kbadk commented 6 years ago

I'm trying to get a simple example working with the Getting Started guide. The page lists required scripts

<script src="js/d3.min.js"></script>
<script src="js/epoch.min.js"></script>

But then goes on to use jQuery. All examples in the documentation seems to use jQuery and I can't find a link to the API anywhere, so I can figure out how to create a chart without jQuery.

Is jQuery required? If so, the documentation ought to say so. If not, the documentation should (in my opinion) include examples without jQuery – not everybody is willing to use jQuery. A link to an API documentation would also do the trick.

0x3W commented 6 years ago

Yes, in fact You need the following line

<script src="http://code.jquery.com/jquery-3.1.0.slim.min.js"></script>

And make sure You use v3 of d3 as Epoch breaks compatibility after v3, current is v5 though.

<script src="http://d3js.org/d3.v3.js" charset="utf-8"></script>
fjeddy commented 5 years ago

This needs to be in the docs. Specially the part about d3 v3 being the requirement. Seriously!

tricoos commented 4 years ago

Can you please specifiy that explicitly? This library might not only be used on a website but on other systems where jQuery is not an option.