d3-cloud icon indicating copy to clipboard operation
d3-cloud copied to clipboard

Provide a more advanced example

Open plonknimbuzz opened this issue 7 years ago • 8 comments

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.

plonknimbuzz avatar Mar 03 '17 04:03 plonknimbuzz

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.

andreibancioiu avatar Mar 08 '17 21:03 andreibancioiu

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.

jasondavies avatar May 11 '17 12:05 jasondavies

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

plonknimbuzz avatar May 18 '17 12:05 plonknimbuzz

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

Tzikas avatar May 09 '18 21:05 Tzikas

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

indieshack avatar Mar 08 '19 07:03 indieshack

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

indieshack avatar Mar 12 '19 19:03 indieshack

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.

sona1111 avatar Jan 02 '20 21:01 sona1111

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

indieshack avatar Jan 02 '20 21:01 indieshack