d3-cloud
d3-cloud copied to clipboard
Provide a more advanced example
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.
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.
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.
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
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
Gosh, thank you Tsikas for making this project usable for me since I don't use Node much.
Jason, is it OK to use a modified version of the demo example on the jasondavies.com website?
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.
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