react chart component with smooth lines support
npm install @evergreenstash/react-chartDo you have something to plot?
I'm the component and I'm really excited about how incredibly awesome your data will look like on my canvas! I'm self-sufficient and provide a bunch of options to custmoize myself for your needs in the most convinient way.
> Please, be advised this repo is marked as in progress and can work unstable.
yarn add @evergreenstash/react-chart
or
npm -i @evergreenstash/react-chart
will do the work :)
All you need to start is to import into project and pass some numeric values to it.
The children are completely optional, some of them can be additionally tuned.
The minimal setup:
``js
import { Chart } from '@evergreenstash/react-chart';
...
const values = [
data.map(item => item.temperature)
];
...
`
The complete basic setup:
`js
import { Chart, Line, AxisX, AxisY, Zoom, Tooltips } from '@evergreenstash/react-chart';
...
const values = [
data.map(item => item.temperature),
data.map(item => item.humidity),
];
const dates = data.map(item => item.date);
...
`
Check the example` folder for more details.