MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useCartesianChartContext

Function useCartesianChartContext

src/ui-react-dom-charts/common/context.ts:82–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 createContext<CartesianChartContextValue | null>(null);
81
82export const useCartesianChartContext = (): CartesianChartContextValue => {
83 const context = useContext(CartesianChartContext);
84 if (isNullish(context)) {
85 errorNew('Series components must be used inside a CartesianChart');
86 }
87 return context as CartesianChartContextValue;
88};

Callers 3

LineSeries.tsxFile · 0.90
BarSeries.tsxFile · 0.90
useSeriesDataFunction · 0.90

Calls 2

isNullishFunction · 0.90
errorNewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…