Public
Edited
Aug 3, 2023
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
linkColorScale = d3.scaleSequential(d3.interpolateViridis)
// .domain(d3.extent(graph.links.map(d => d.gold_price)).reverse());
.domain(d3.extent(graph.links.map(d => 1)).reverse());
Insert cell
Insert cell
Insert cell
height = 700
Insert cell
width = 700
Insert cell
Insert cell
Insert cell
Insert cell
d3 = require("d3@6");
Insert cell
Insert cell
html`
<style>
.label {
font-family: sans-serif;
font-size: 8px;
text-anchor: middle;

paint-order: stroke;
stroke: white;
stroke-width: 2px;
stroke-linecap: butt;
stroke-linejoin: miter;
}

.label-row, .label-column {
font-family: sans-serif;
font-size: 12px;
}
</style>
`
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