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

Function useChart

apps/start/src/components/charts/chart-context.tsx:352–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350 * one slice.
351 */
352export function useChart(): ChartContextValue {
353 const stable = useChartStable();
354 const hover = useChartHover();
355 // Identity changes on every hover (hover is the volatile slice) — that's
356 // fine for consumers using this merged hook; they explicitly opted in to
357 // re-rendering on hover.
358 return { ...stable, ...hover };
359}
360
361export default ChartStableContext;

Callers 13

bar-x-axis.tsxFile · 0.90
OPSeriesDotsFunction · 0.90
x-axis.tsxFile · 0.90
bar-y-axis.tsxFile · 0.90
SeriesBarFunction · 0.90
OPStatHoverBridgeFunction · 0.90
useSpikeForHoveredPointFunction · 0.90
OPHoverProbeFunction · 0.90
bar.tsxFile · 0.90
chart-tooltip.tsxFile · 0.90
ChartMarkersFunction · 0.90

Calls 2

useChartStableFunction · 0.85
useChartHoverFunction · 0.85

Tested by

no test coverage detected