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

scatter-chart

v1.6.2arrow_drop_down
v1.6.2
STATUS
Passing
DOWNLOADS
0
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
6 months ago
SIZE
120 KB
Scatter chart React component
1 contributor
Use scatter-chart in your project ?
Copied
npm i @bit/recharts.recharts.scatter-chart
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
chart/ScatterChart.js
21 Lines(17 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * @fileOverview Scatter Chart
 */
import generateCategoricalChart from './generateCategoricalChart';
import Scatter from '../cartesian/Scatter';
import XAxis from '../cartesian/XAxis';
import YAxis from '../cartesian/YAxis';
import ZAxis from '../cartesian/ZAxis';
import { formatAxisMap } from '../util/CartesianUtils';

export default generateCategoricalChart({
  chartName: 'ScatterChart',
  GraphicalChild: Scatter,
  eventType: 'single',
  axisComponents: [
    { axisType: 'xAxis', AxisComp: XAxis },
    { axisType: 'yAxis', AxisComp: YAxis },
    { axisType: 'zAxis', AxisComp: ZAxis },
  ],
  formatAxisMap,
});