Public
Edited
Jul 11
Insert cell
Insert cell
Insert cell
data = FileAttachment("penguins.csv").csv({typed: true})
Insert cell
Insert cell
fields = [
{ fid: "species", semanticType: "nominal", analyticType: "dimension"},
{ fid: "island", semanticType: "nominal", analyticType: "dimension"},
{ fid: "culmen_length_mm", semanticType: "quantitative", analyticType: "measure"},
{ fid: "culmen_depth_mm", semanticType: "quantitative", analyticType: "measure"},
{ fid: "flipper_length_mm", semanticType: "quantitative", analyticType: "measure"},
{ fid: "body_mass_g", semanticType: "quantitative", analyticType: "measure"},
{ fid: "sex", semanticType: "nominal", analyticType: "dimension"}
]
Insert cell
ds = FileAttachment("ds-students-service.json").json()
Insert cell
Insert cell
draw_gw({ data, fields })
Insert cell
Insert cell
Insert cell
draw_gw( ds )
Insert cell
Insert cell
function draw_gw(props) {
const div = htl.html`<div>`;
requestAnimationFrame(() => gw.embedGraphicWalker(div, props));
return div;
}
Insert cell
Insert cell
gw = import('https://cdn.jsdelivr.net/npm/@kanaries/graphic-walker@0.4.60/+esm')
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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