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

Function useChartInput

apps/start/src/components/report-chart/context.tsx:58–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 * fields (like visibleSeries) that shouldn't affect the query cache key.
57 */
58export const useChartInput = () => {
59 const { report } = useReportChartContext();
60 return useMemo(() => {
61 const { visibleSeries, ...input } = report;
62 return input;
63 }, [report]);
64};
65
66export const ReportChartProvider = ({
67 children,

Callers 9

ReportAreaChartFunction · 0.90
ReportConversionChartFunction · 0.90
ReportMetricChartFunction · 0.90
ReportMapChartFunction · 0.90
ReportBarChartFunction · 0.90
ReportHistogramChartFunction · 0.90
ReportFunnelChartFunction · 0.90
ReportPieChartFunction · 0.90
ReportLineChartFunction · 0.90

Calls 1

useReportChartContextFunction · 0.85

Tested by

no test coverage detected