Published
Edited
Nov 22, 2020
Comments locked
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
artists = _.uniq(data.map(d => d.artist_name))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
y_scale = d3
.scaleLinear()
.domain([0, 109])
.range([height - margin.bottom, margin.top])
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
md`*Color chart Code (scales, import, etc.)*`
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
spy_differences = {
const minyr = 2011;
const maxyr = 2018;
const arr = [];

for (let i = minyr; i <= maxyr; i++) {
arr[i - minyr] = {
yr: i,
diff: Math.abs(shinee_spy[i - minyr].count - bts_spy2[i - minyr].count)
};
}

return arr;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { displayCaution } from "@info474/utilities"
Insert cell
d3 = require("d3")
Insert cell
_ = require("lodash")
Insert cell
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