getInsets

open override fun getInsets(context: MeasureContext, outInsets: Insets, horizontalDimensions: HorizontalDimensions)

Called during the measurement phase, before getHorizontalInsets. Both horizontal and vertical insets can be requested from this function. The final inset for a given edge of the associated Chart is the largest of the insets requested for the edge.

Parameters

context

holds data used for the measuring of components.

outInsets

used to store the requested insets.

horizontalDimensions

the associated Chart’s HorizontalDimensions.