Published
Edited
Dec 10, 2019
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
color_array(cp,9)
Insert cell
viewof cp = colorPicker("Pick a Color",null,"Category10",9)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
vestaColors = function(){
let arr = [];
const c = function(specifier) {
var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;
while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
return colors;
}
const cols = c("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
return cols.map((c,i) => cols.slice(0,i));

}
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