MCPcopy Create free account
hub / github.com/evolify/dumpfun / useChart

Function useChart

common/components/ui/chart.tsx:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23const ChartContext = React.createContext<ChartContextProps | null>(null)
24
25function useChart() {
26 const context = React.useContext(ChartContext)
27
28 if (!context) {
29 throw new Error("useChart must be used within a <ChartContainer />")
30 }
31
32 return context
33}
34
35function ChartContainer({
36 id,

Callers 2

ChartTooltipContentFunction · 0.85
ChartLegendContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected