get Size
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:
take the full width (resp. height) as ComponentSize.innerSize if the axis is horizontal (resp. vertical)
compute its height (resp. width) as ComponentSize.innerSize if the axis is horizontal (resp. vertical)
indicates if it needs "padding" as ComponentSize.padding, for example if some labels overflow
Return
ComponentSize: the minimum axis size (as ComponentSize.innerSize) and the "overflow" of the AxisRenderer as ComponentSize.padding.
Parameters
: 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