Data circles

by Anna Powell-Smith

How to use this template

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)];


API information

Explains to developers how to use this template with the Flourish Live API.

template: _113

version: _1

color color

Color. The color of the circles

opacity number

Opacity. The opacity of the circles

Max: 1