forked from recharts/recharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ComposedChart.tsx
25 lines (24 loc) · 892 Bytes
/
ComposedChart.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* @fileOverview Composed Chart
*/
import { generateCategoricalChart } from './generateCategoricalChart';
import { Area } from '../cartesian/Area';
import { Bar } from '../cartesian/Bar';
import { Line } from '../cartesian/Line';
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';
import { arrayTooltipSearcher } from '../state/optionsSlice';
export const ComposedChart = generateCategoricalChart({
chartName: 'ComposedChart',
GraphicalChild: [Line, Area, Bar, Scatter],
axisComponents: [
{ axisType: 'xAxis', AxisComp: XAxis },
{ axisType: 'yAxis', AxisComp: YAxis },
{ axisType: 'zAxis', AxisComp: ZAxis },
],
formatAxisMap,
tooltipPayloadSearcher: arrayTooltipSearcher,
});