Public
Edited
Sep 1, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
<div id='density'>
<div id="before-density">
<h3>${feature4density}, ${pattern4density}, ${getFeatureWithCountryEmoji(country) + country} (before ${beginning})</h2>
<div class="plot"></div>
</div>
<div id="after-density">
<h3>${feature4density}, ${pattern4density}, ${getFeatureWithCountryEmoji(country) + country} (After ${ending})</h2>
<div class="plot"></div>
</div>
</div>

<style>
#density {
display: flex;
}
</style>
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
Insert cell
intervals-tolerance5@2.0-reshaped-countries-around-europe.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

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
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function drawCompareDensityGrids(
feature,
pattern,
neighborsBefore,
neighborsAfter
) {
button;
compareDensityGrids(
[
neighborsBefore.filter((d) => d.relation !== "overlap"),
neighborsAfter.filter((d) => d.relation !== "overlap")
],
150,
150,
{ top: 5, bottom: 16, left: 30, right: 5 },
feature,
pattern,
["#before-density", "#after-density"],
50,
0.03,
5
);
}
Insert cell
drawCompareDensityGrids(
feature4density,
pattern4density,
neighborsBefore,
neighborsAfter
)
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
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
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
patterns = ['increasing', 'constancy', 'decreasing']
Insert cell
temporalRelations = ["before", "overlap", "after"]
Insert cell
import {Pack} from "@d3/pack"
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