Public
Edited
Jul 25, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof clickedMedia = Inputs.radio(["video", "image"], {label: "clicked on video or image", value: false})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
bar = Plot.barY(dataFromDisplayr.aggregated_data,
{ x: "_row", title: (elems) => `${elems._row}`, fill: "#4e79a7", y: d => d["Freq"]*100 }
).plot({
width: width,
height: dataFromDisplayr.height[0],
y: {
label: "%",
line: true,
domain: [0, 100]
},
x: {
label: dataFromDisplayr.groupByVar[0],
line: true
}
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mediaCell = Object.keys(dataFromDisplayr.appended_data[0]).indexOf(clickedMedia) + 2
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

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