iddan / plot-react

React wrapper for @observablehq/plot
19 stars 1 forks source link

Plot React

React wrapper for @observablehq/plot, a JavaScript library for exploratory data visualization.

Installing

yarn add plot-react

or

npm i plot-react

<PlotFigure />

Renders a new plot given the specified Plot.plot() options as SVG or HTML figure element.

<PlotFigure
  options={
    {
      // ... Plot.plot() options
    }
  }
/>