react-d3-graphics
A small library wirth d3 graphs to use in your application.
Install
npm i react-d3-graphics
Screenshots
- SCREENSHOT 1 []
- SCREENSHOT 2 []
- SCREENSHOT 3 []
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
npm run build
Builds the demo page to the build
folder.
How to use
Using TreeMap
Component { const data = name: 'GraphName' children: name: 'Children 1' rate: 1 size: 100 name: 'Children 2' rate: 0 size: 50 name: 'Children 3' rate: 5 size: 400 return <TreeMap data=data width=windowinnerWidth height=windowinnerHeight /> }
Using LineChart
Component { const data = date: 1009999999999 value: 9535 date: 1019999999999 value: 12035 date: 1029999999999 value: 8535 date: 1039999999999 value: 10935 date: 1049999999999 value: 19535 return <LineChart data=data width=windowinnerWidth height=windowinnerHeight /> }
Using MultiLineChart
Component { const data = y: '% Value' series: name: 'Apple' values: 26 27 27 27 28 name: 'IBM' values: 21 22 23 24 22 name: 'Microsoft' values: 28 27 26 25 26 name: 'Google' values: 19 24 2 21 25 name: 'Sony' values: 2 24 18 23 21 dates: 1019999999999 1029999999999 1039999999999 1049999999999 1059999999999 return <MultiLineChart data=data width=windowinnerWidth height=windowinnerHeight /> }