createCentricChart

Creates a typed context for centric Polar charts.

Motivation:Recharts components fall back to any by default. While explicit typing using Generics works per-component, it becomes tedious and error-prone across an entire chart.

This Chart Helper allows you to perfectly align your data properties and ensure all your charts and axes work in harmony. Once you define the helper with your generic requirements, all returned components strictly enforce your data structure, catching dataKey typos and shape errors early.

Layout Binding:Curries chart definitions to strictly bind layout="centric" prop behavior statically onto components. By wrapping the chart implementations, it completely masks the layout prop on initialization to prevent regressions. Evaluates TComponents generics at compile-time to reject radial-only elements natively (RadialBar, Pie, etc.)

Available since Recharts 3.8

Return value

Function