Published
Edited
Sep 7, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const highlightPoint = 5,
bucketCountRough = 10,
someData = [1, 2, 3, 3, 4, 4, 4, 5, 5, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 10],
myCustomOptions = {
title: "Some Random Values I Generated",
subtitle: "Just as an example!",
fill: "left",
gap: 7,
highlightBarColor: "#eb5757",
barRounding: 6
}
const distChart = new DistributionHistogram(highlightPoint, someData, bucketCountRough, myCustomOptions)
return distChart.getNode()
}
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