Public
Edited
Jan 25, 2023
2 forks
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
grid: true,
marks: [
Plot.frame(),
Plot.rectY(data1, Plot.binX(
{y: "count"},
{x: "x",
fill: "steelblue",
strokeWidth: .5, // linewidth = 0.5
stroke: "white", // equivalent of edgecolor="white"
thresholds: 8 // equivalent of "bins=8"
}
))
]
})
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.rectY(data1,
Plot.binX(
{y: "count"},
{x: "x",
}
))
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.frame(),
Plot.rectY(data1, Plot.binX(
{y: "count"},
{x: "x",
fill: colorSelect,
thresholds: binMethod
}
))
]
})
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