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

0.0.4 • Public • Published

react-d3-graphs

React wrapper for d3.js

Getting started

Install library with peer dependencies

npm install --save react-d3-graphs

# or

yarn add react-d3-graphs

Usage

import { Bar } from 'react-d3-graphs';

<Bar data={...} />

Configure

Bar graph props

width: number;
height: number;
data: Array[{ value: string }];
barColor: string;
bgColor: string;

width

Type number Default: undefined

width of the graph

height

Type number Default: undefined

height of the graph

data

Type: Array of values Default: undefined

An array of values for the graph

barColor

Type: string Default: #000000

Color of the bar and text in hex

bgColor

Type: string Default: #000000

Color of the background in hex

Package Sidebar

Install

npm i react-d3-graphs

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

754 kB

Total Files

13

Last publish

Collaborators

  • mdshamoon