useCartesianChartLayout

Returns the chart layout only for Cartesian charts.

Returns horizontal or vertical for Cartesian charts. Returns undefined for non-Cartesian charts or outside chart context.

Return value

"horizontal" | "vertical" | undefined

The Cartesian chart layout, or undefined.