Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

line-chart

v1.6.2arrow_drop_down
v1.6.2
STATUS
Passing
DOWNLOADS
843
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
120 KB
Line chart React component
1 contributor
Install line-chart as a package?
Copied
npm i @bit/recharts.recharts.line-chart
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
chart/LineChart.js
18 Lines(14 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * @fileOverview Line Chart
 */
import generateCategoricalChart from './generateCategoricalChart';
import Line from '../cartesian/Line';
import XAxis from '../cartesian/XAxis';
import YAxis from '../cartesian/YAxis';
import { formatAxisMap } from '../util/CartesianUtils';

export default generateCategoricalChart({
  chartName: 'LineChart',
  GraphicalChild: Line,
  axisComponents: [
    { axisType: 'xAxis', AxisComp: XAxis },
    { axisType: 'yAxis', AxisComp: YAxis },
  ],
  formatAxisMap,
});