({
width,
height,
data,
xDataKey,
margin,
animationDuration,
animationEasing,
enterTransition,
revealSignature,
children,
containerRef,
}: ChartInnerProps)
| 95 | } |
| 96 | |
| 97 | function ChartInner({ |
| 98 | width, |
| 99 | height, |
| 100 | data, |
| 101 | xDataKey, |
| 102 | margin, |
| 103 | animationDuration, |
| 104 | animationEasing, |
| 105 | enterTransition, |
| 106 | revealSignature, |
| 107 | children, |
| 108 | containerRef, |
| 109 | }: ChartInnerProps) { |
| 110 | const lines = useMemo(() => extractAreaConfigs(children), [children]); |
| 111 | |
| 112 | return ( |
| 113 | <TimeSeriesChartInner |
| 114 | animationDuration={animationDuration} |
| 115 | animationEasing={animationEasing} |
| 116 | clipPathId="chart-area-grow-clip" |
| 117 | containerRef={containerRef} |
| 118 | data={data} |
| 119 | enterTransition={enterTransition} |
| 120 | height={height} |
| 121 | lines={lines} |
| 122 | margin={margin} |
| 123 | revealSignature={revealSignature} |
| 124 | width={width} |
| 125 | xDataKey={xDataKey} |
| 126 | > |
| 127 | {children} |
| 128 | </TimeSeriesChartInner> |
| 129 | ); |
| 130 | } |
| 131 | |
| 132 | export function AreaChart({ |
| 133 | data, |
nothing calls this directly
no test coverage detected