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
d3 = require("d3@6")
Insert cell
import {legend} from "@d3/color-legend"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fontsize = d3.scaleLinear()
.domain([0, 540])
.range([9, 30]);
Insert cell
//color1 = d3.scaleOrdinal(["BTS","EXO","GOT7"], ["#9467bd", "#1f77b4", "#2ca02c"])
Insert cell
combinationcolor(4)
Insert cell
combinationcolor = d3.scaleOrdinal([0,1,2,4,3,6,5,7], ["#fff","#9467bd", "#1f77b4","#2ca02c", "#6660BD", "#32AA74", "#997955","#DFADC5"])
Insert cell
Insert cell
Insert cell
keywordgroups=[]
Insert cell
keywords=[]
Insert cell
function findObjectInArrayByProperty(array, propertyName, propertyValue) {
return array.find((o) => { return o[propertyName] === propertyValue });
}
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