jasondavies / d3-cloud

Create word clouds in JavaScript.
https://www.jasondavies.com/wordcloud/
Other
3.82k stars 1.07k forks source link

Provide a more advanced example #118

Open plonknimbuzz opened 7 years ago

plonknimbuzz commented 7 years ago

Can you give us the example script in html instead of DEMO in https://www.jasondavies.com/wordcloud? the others library is so simple to use, but the most beautifull and the most difficult is yours. even my work is done with modify your demo script, i think we still need simple and advanced example page. So, please, can you give some example, or just 1, so the others will more easier to use this library. thanks.

andreibancioiu commented 7 years ago

I would like to take this opportunity to ask a question related to @plonknimbuzz's concern (ease of use):

Is there any plan to provide the library as a standalone Javascript library as well, without requiring the users to rely on npm and browserify?

Currently, in order to include the library as a standalone Javascript unit in the browser, one has to build it first:

browserify d3.layout.cloud.js --standalone cloud -o cloud.js

And only then reference it in a web page:

<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="cloud.js"></script>

Please let me know if I misunderstood something.

jasondavies commented 7 years ago

Is there any plan to provide the library as a standalone Javascript library as well, without requiring the users to rely on npm and browserify?

A standalone build is included here: build/d3.layout.cloud.js.

plonknimbuzz commented 7 years ago

ahh.. you so late to answer (almost 2 month). i almost forgot if post this request -_- i know that we can use standalone version. but nevermind, i will pull my example if i have enough time

Tzikas commented 6 years ago

I downloaded this https://www.jasondavies.com/wordcloud/cloud.min.js (It would be better if the example wasn't minified)

https://github.com/jasondavies/d3-cloud/pull/62 Made it super easy. Thanks so much @kyu999

https://github.com/cesine/d3-cloud

indieshack commented 5 years ago

Gosh, thank you Tsikas for making this project usable for me since I don't use Node much.

indieshack commented 5 years ago

Jason, is it OK to use a modified version of the demo example on the jasondavies.com website?

sona1111 commented 4 years ago

Would it be possible to provide the un-minified cloud.js from https://www.jasondavies.com/wordcloud/ (or separate the cloud.js library from the index.js example / page / driver code) so that I could try to extract the part related to building that style of word-cloud? I have not been able to find another example like it anywhere.

indieshack commented 4 years ago

Would it be possible to provide the un-minified cloud.js from https://www.jasondavies.com/wordcloud/ (or separate the cloud.js library from the index.js example / page / driver code) so that I could try to extract the part related to building that style of word-cloud? I have not been able to find another example like it anywhere.

Looks like the last comment on here from Jason was three years ago, don't hold your breath for a response - I sense he may have moved onto other things