getHorizontalInsets

open override fun getHorizontalInsets(context: MeasureContext, availableHeight: Float, outInsets: HorizontalInsets)

Called during the measurement phase, after getInsets. Only horizontal insets can be requested from this function. Unless the available height is of interest, getInsets can be used to set all insets. 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.

availableHeight

the available height. The vertical insets are considered here.

outInsets

used to store the requested insets.