Public
Edited
Feb 20, 2023
7 stars
Insert cell
Insert cell
html2canvas(chart)
Insert cell
chart = Plot.auto(penguins, {
x: "culmen_length_mm",
color: "species"
}).plot({
caption: md`## A caption

Multiline, that is. This chart displays the distribution of penguin species, represented by bars of varying lengths. Each bar represents a different species of penguin and its height corresponds to the number of individuals observed. The chart shows that the Adelie penguin has the highest representation in the dataset, followed by the Chinstrap and Gentoo penguins. The chart provides a visual representation of the relative abundance of each species and can be used to make comparisons between them. _Caption generated by ChatGPT, which didn’t even need to look at the data._`,
color: { legend: true }
})
Insert cell
html2canvas = require("html2canvas")
Insert cell
Insert cell
something = md`### Hello html2canvas

${tex`x^2`}

`
Insert cell
Insert cell
html2canvas(something)
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