Published
Edited
Aug 31, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
foodGroup= ['Fruit','Dairy','Vegetables','Miscellaneous']
Insert cell
foodCategory = [ 'energy', 'protein','fatTotal','fatSaturated','carbohydrate' ,'sugars','fibre','sodium']
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
nClusters=4
Insert cell
Insert cell
Insert cell
myColor(1)
Insert cell
md` https://observablehq.com/@bradysheridan/force-beads-respondent-demographic-breakdown`
Insert cell
Insert cell
Insert cell
totalNumNodes=4
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height = 600
Insert cell
width =400
Insert cell
padding = 2
Insert cell
margin = ({top: 40, right: 50, bottom: 10, left: 50})
Insert cell
import { slider } from "@jashkenas/inputs"
Insert cell
import {button} from "@jashkenas/inputs"
Insert cell
d3 = require('d3', 'd3-force-cluster')
Insert cell
html`
<style>
#chart {
background: linear-gradient(90deg, #161616, #333333);
}

.title {
font-family: 'Montserrat', sans-serif;
font-weight: 700;
font-size: 28px;
fill: #28CC5F;
}

.subtitle {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: 18px;
fill: white;
}

`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more