All Projects → timdream → Wordcloud2.js

timdream / Wordcloud2.js

Licence: mit
Tag cloud/Wordle presentation on 2D canvas or HTML

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to Wordcloud2.js

chartjs-chart-wordcloud
Chart.js Word Clouds
Stars: ✭ 34 (-98.22%)
Mutual labels:  word-cloud, wordcloud, tag-cloud
visualization
Text visualization tools
Stars: ✭ 18 (-99.06%)
Mutual labels:  word-cloud, wordle
soan
Social Analysis based on Whatsapp data
Stars: ✭ 106 (-94.44%)
Mutual labels:  word-cloud, wordcloud
Zfont
💬 Text plugin for Zdog - works with any .ttf font!
Stars: ✭ 126 (-93.39%)
Mutual labels:  canvas
Leaflet.canvaslayer.field
Load and style Raster files in Leaflet (geotiff & asciigrid)
Stars: ✭ 128 (-93.28%)
Mutual labels:  canvas
Typesettable
📐 A typesetting library for SVG and Canvas
Stars: ✭ 134 (-92.97%)
Mutual labels:  canvas
Blog
趁还能折腾的时候多读书——前端何时是个头
Stars: ✭ 1,730 (-9.19%)
Mutual labels:  canvas
G2
📊 A highly interactive data-driven visualization grammar for statistical charts.
Stars: ✭ 11,020 (+478.48%)
Mutual labels:  canvas
Paintview
An Android View with Gesture Supported for Painting
Stars: ✭ 136 (-92.86%)
Mutual labels:  canvas
Phaser Examples
Contains hundreds of source code examples and related media for the Phaser HTML5 Game Framework.
Stars: ✭ 1,680 (-11.81%)
Mutual labels:  canvas
Fabric Photo
基于canvas的前端图片编辑器
Stars: ✭ 132 (-93.07%)
Mutual labels:  canvas
Earthjs
D3 Earth JS
Stars: ✭ 128 (-93.28%)
Mutual labels:  canvas
Scrawl Canvas
Responsive, integrated and interactive HTML5 canvas elements. Scrawl-canvas is a JavaScript library designed to make using the HTML5 canvas element a bit easier, and a bit more fun!
Stars: ✭ 134 (-92.97%)
Mutual labels:  canvas
Gcanvas
A lightweight cross-platform graphics rendering engine. (超轻量的跨平台图形引擎) https://alibaba.github.io/GCanvas
Stars: ✭ 1,705 (-10.5%)
Mutual labels:  canvas
R3f Next Starter
Repo is moving to https://github.com/pmndrs/react-three-next
Stars: ✭ 137 (-92.81%)
Mutual labels:  canvas
Responsive Sketchpad
A completely responsive, HTML5 canvas sketchpad for use on desktop and mobile browsers
Stars: ✭ 125 (-93.44%)
Mutual labels:  canvas
Vue Canvas Nest
💫 A Vue.js background component for canvas-nest.
Stars: ✭ 136 (-92.86%)
Mutual labels:  canvas
Deepfriedmemes.com
🅱️ Deep fries your pics. Serve with laundry sauce.
Stars: ✭ 131 (-93.12%)
Mutual labels:  canvas
Circular Audio Wave
JS library for audio visualization in circular wave using Web Audio API and ECharts
Stars: ✭ 131 (-93.12%)
Mutual labels:  canvas
Canvas Test
🎮 happy canvas
Stars: ✭ 1,722 (-9.61%)
Mutual labels:  canvas

wordcloud2.js npm version

Create a tag cloud/Wordle presentation on 2D canvas or HTML.

This library is a spin-off project from HTML5 Word Cloud.

Visit the demo page

Installation

npm install wordcloud

Simple usage

Download the latest wordcloud2.js file from the src folder in this repository.

Load wordcloud2.js script to the web page, and run:

WordCloud(document.getElementById('my_canvas'), { list: list } );

where list is an array that look like this: [['foo', 12], ['bar', 6]].

Options available, see API documentation for detail.

Contact & help

Please read through the API documentation and CONTRIBUTING.md before filing an issue or contact me via e-mail.

Algorithm

Before putting each word on the canvas, it is drawn on a separate canvas to read back the pixels to record is drawn spaces. With the information, wordcloud.js will then try to find a place to fit the word that is closest to the start point.

Testing

Tests are available with QUnit and grunt. To setup environment for testing, run npm install and manually install SlimerJS of your platform.

Use grunt test to ensure all options can be set without JavaScript error.

Use grunt compare --base-commit=gh-pages to compare your proposed fix with gh-pages branch.

Acknowledgement

The developer would like to thank Chad Jensen for sponsoring the work on image masking on the demo page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].