getSize

abstract fun getSize(totalSize: Size): ComponentSize

Compute and returns the preferred ComponentSize based on a given available Size. This is called before drawing, to determine the size of the AxisRenderer.

When a given a "total size", the AxisRenderer is expected to:

Return

ComponentSize: the minimum axis size (as ComponentSize.innerSize) and the "overflow" of the AxisRenderer as ComponentSize.padding.

Parameters

totalSize

: the default size given by the Chart layout, the axis must cover all the given size, for example, a vertical axis innerSize.height is expected to be the same as the givenSize.height