react-vis-styles

0.3.6
react vis styles in js
View on github

Installtion

yarn add react-vis-styles

Demo

1.01.52.02.53.068101214

Usage

import React, { Fragment } from 'react';
import {
XYPlot,
XAxis,
YAxis,
HorizontalGridLines,
LineSeries
} from 'react-vis';
import RVStyles from 'react-vis-styles';
function App() {
return (
<Fragment>
<RVStyles />
<XYPlot width={300} height={300}>
<HorizontalGridLines />
<LineSeries data={[{ x: 1, y: 10 }, { x: 2, y: 5 }, { x: 3, y: 15 }]} />
<XAxis />
<YAxis />
</XYPlot>
</Fragment>
);
}

separated imports

import {
LegendsStyle,
PlotStyle,
RadialChartStyle,
TreemapStyle
} from 'react-vis-styles';

with props

<LegendsStyle enabledColor="#3a3a48" disabledColor="#b8b8b8" />

License

MIT

Made with by SWIFT CARROT