react-d3-plotter
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-d3-plotter

react npm version definition types

This library provides wrappers for d3 visualization components, starting with a simple scatter plot. The motivation is to build a more up-to-date library for easy and fast prototyping of data visualization. Contributors are welcome.

Install

npm i -S react-d3-plotter

Prerequisites

npm i -S react d3

Scatter plot

Pass an array of x,y value pairs to the scatter plot. For instance:

const data = [[1,1], [2,10], [5,16]]
import { ScatterPlot } from 'react-d3-scatter'
...
<ScatterPlot data={data} />

Props

props default type description
data [] array Array of x, y value paris
width 600 number The width of the scatter plot in px
height 400 number The height of the scatter plot in px
padding 60 number A padding value in px to properly display axis

Package Sidebar

Install

npm i react-d3-plotter

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

18.6 kB

Total Files

37

Last publish

Collaborators

  • jfeferman