observable-framework-lib-plot
Library: Observable Plot
Observable Framework documentation: Library: Observable Plot Source: https://observablehq.com/framework/lib-plot
Observable Plot is a “JavaScript library for visualizing tabular data, focused on accelerating exploratory data analysis. It has a concise, memorable, yet expressive interface, featuring scales and layered marks.” It’s the sister library to our other visualization library, D3.js. Observable Plot is available by default as Plot in Markdown, but you can import it explicitly like so:
import * as Plot from "npm:@observablehq/plot";
To display a chart, call Plot.plot or mark.plot like so:
Plot.rectY(alphabet, {x: "letter", y: "frequency"}).plot()
As another example, here’s a pretty (but meaningless) Voronoi chart:
More from spqw/skill-observable-framework
observable-framework-lib-deckgl
Using Deck.gl in Observable Framework for large-scale geospatial data visualization.
11observable-framework-lib-mapbox-gl
Using Mapbox GL JS in Observable Framework for vector tile maps.
4observable-framework-jsx
Using JSX (React components) in Observable Framework pages.
3observable-framework-embeds
How to embed Observable Framework pages and components into other websites.
3observable-framework-input-range
Range slider input component in Observable Framework — select a numeric value.
3observable-framework-lib-tex
Using TeX/LaTeX in Observable Framework for mathematical typesetting.
3