MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / ChartInner

Function ChartInner

apps/start/src/components/charts/area-chart.tsx:97–130  ·  view source on GitHub ↗
({
  width,
  height,
  data,
  xDataKey,
  margin,
  animationDuration,
  animationEasing,
  enterTransition,
  revealSignature,
  children,
  containerRef,
}: ChartInnerProps)

Source from the content-addressed store, hash-verified

95}
96
97function 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
132export function AreaChart({
133 data,

Callers

nothing calls this directly

Calls 1

extractAreaConfigsFunction · 0.85

Tested by

no test coverage detected