({
width,
height,
data,
xDataKey,
margin,
animationDuration,
animationEasing,
enterTransition,
revealSignature,
children,
containerRef,
}: ChartInnerProps)
| 121 | } |
| 122 | |
| 123 | function ChartInner({ |
| 124 | width, |
| 125 | height, |
| 126 | data, |
| 127 | xDataKey, |
| 128 | margin, |
| 129 | animationDuration, |
| 130 | animationEasing, |
| 131 | enterTransition, |
| 132 | revealSignature, |
| 133 | children, |
| 134 | containerRef, |
| 135 | }: ChartInnerProps) { |
| 136 | const lines = useMemo(() => extractLineConfigs(children), [children]); |
| 137 | |
| 138 | return ( |
| 139 | <TimeSeriesChartInner |
| 140 | animationDuration={animationDuration} |
| 141 | animationEasing={animationEasing} |
| 142 | clipPathId="chart-grow-clip" |
| 143 | containerRef={containerRef} |
| 144 | data={data} |
| 145 | enterTransition={enterTransition} |
| 146 | height={height} |
| 147 | lines={lines} |
| 148 | margin={margin} |
| 149 | revealSignature={revealSignature} |
| 150 | width={width} |
| 151 | xDataKey={xDataKey} |
| 152 | > |
| 153 | {children} |
| 154 | </TimeSeriesChartInner> |
| 155 | ); |
| 156 | } |
| 157 | |
| 158 | export function LineChart({ |
| 159 | data, |
nothing calls this directly
no test coverage detected