useYAxisDomain
Returns the calculated domain of a Y-axis. The domain can be numerical: The type of the domain is defined by the The values of the domain are calculated based on the data and the Does not interact with Brushes, as Y-axes do not support brushing.[min, max], or categorical: ['a', 'b', 'c'].type prop of the YAxis.dataKey of the axis.
Return value
CategoricalDomain | NumberDomain | undefined
The domain of the Y-axis, or undefined if it cannot be calculated or if used outside a chart context.
Props
yAxisIdnumber | stringoptional
The
yAxisIdof the Y-axis. Defaults to0if not provided.默认值:
"defaultAxisId"