storybook/stories/Welcome.mdx
import { CartesianGrid, Line, LineChart, XAxis, YAxis, Tooltip } from '../../src'; import { pageData as data } from './data/Page';
A composable charting library built on React components
<LineChart width={500} height={300} data={data} accessibilityLayer margin={{ top: 5, right: 5, bottom: 5, left: 0, }}
<CartesianGrid stroke="#eee" strokeDasharray="5 5" /> <XAxis dataKey="name" /> <YAxis /> <Line type="monotone" dataKey="uv" stroke="#8884d8" /> <Line type="monotone" dataKey="pv" stroke="#82ca9d" /> <Tooltip /> </LineChart>
<LineChart width={500} height={300} data={data} accessibilityLayer>
<XAxis dataKey="name"/>
<YAxis/>
<CartesianGrid stroke="#eee" strokeDasharray="5 5"/>
<Line type="monotone" dataKey="uv" stroke="#8884d8" />
<Line type="monotone" dataKey="pv" stroke="#82ca9d" />
<Tooltip/>
</LineChart>