Example template demonstrating how to use data with Flourish
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
.gitignore
LICENSE
README.md
package-lock.json
package.json
rollup.config.js
template.yml
thumbnail.png

README.md

Sample Flourish template: data circles

This sample template demonstrates how to use data tables.

Use the Flourish SDK to try it out.

The main code file for the template is src/index.js.

Sample data

The sample data was generated with the following code:

const words = require("fs").readFileSync("/usr/share/dict/words").toString("utf-8").split("\n");
for (let i=0; i < 25; i++) {
	const x = Math.random(),
	      y = Math.random(),
	      size = Math.random() * 10000,
	      word = words[Math.floor(Math.random()*words.length)];

	console.log(`${x},${y},${size},${word}`);
}