timdream / wordcloud2.js

Tag cloud/Wordle presentation on 2D canvas or HTML

Home Page:https://wordcloud2-js.timdream.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

canvas

sais123 opened this issue · comments

I'm a student at university and we've just started HTML coding, so I am very new to this. I have no experience witch , so I have no idea how to fix this. I've included wordcloud2.js and my canvas is really small, if I try to change its size the words get bigger too and they look distorted. My code looks like this:

<script src="wordcloud2.js"></script> <script> WordCloud(document.getElementById('canvas'), { list: [['foo', 12], ['bar', 6]]} ); </script>