Published
Edited
Apr 3, 2020
Insert cell
Insert cell
viewof mychart=(viewof chart)
Insert cell
mychart
Insert cell
import {viewof chart}
with {
miserable as data,
myRadius as radius,
myStrength as strength,
myLinkStrength as link_strength,
myXStrength as x_strength,
myYStrength as y_strength,
myWithinGroupStrength as within_group_strength,
myBetweenGroupStrength as between_group_strength,
myHeight as height,
myWidth as width,
myOriginX as origin_x,
myOriginY as origin_y,
}
from "@r03ert0/force-directed-graph-with-labels"
Insert cell
Insert cell
myRadius=10
Insert cell
myStrength = 150
Insert cell
myLinkStrength = 0.3
Insert cell
myXStrength = 0.2
Insert cell
myYStrength = 0.7
Insert cell
myWithinGroupStrength = 0.6
Insert cell
myBetweenGroupStrength = 0.1
Insert cell
myHeight = 1000
Insert cell
myWidth = 1000
Insert cell
myOriginX = 0
Insert cell
myOriginY = 0
Insert cell
d3 = require("d3@5")
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