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

Function ChartInner

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

Source from the content-addressed store, hash-verified

121}
122
123function 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
158export function LineChart({
159 data,

Callers

nothing calls this directly

Calls 1

extractLineConfigsFunction · 0.85

Tested by

no test coverage detected