Published
Edited
Feb 4, 2020
Insert cell
Insert cell
Insert cell
Insert cell
embed(vlspec);
Insert cell
Insert cell
Insert cell
Insert cell
vlspec
Insert cell
Insert cell
createDracoProgram = function(data) {
let schema = Draco.data2schema(data);
let asp = Draco.schema2asp(schema);
let index = 0;
for (var key in schema.stats) {
asp.push("\nencoding(e"+index+").\n:- not field(e"+index+',"'+key+'").');
index += 1;
}
let out = asp.join("\n");
console.log("out", out);
return out;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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