setBounds

open fun <Model : ChartEntryModel> setBounds(context: MeasureContext, contentBounds: RectF, chart: Chart<Model>, legend: Legend?, horizontalDimensions: HorizontalDimensions, vararg chartInsetter: ChartInsetter?): RectF

Measures and sets the bounds for the components of the chart.

Return

the bounds applied to the chart.

Parameters

context

holds data used for the measuring of components.

contentBounds

the bounds in which the chart should be drawn.

chart

the chart itself.

legend

the legend for the chart.

horizontalDimensions

the HorizontalDimensions of the chart.

chartInsetter

additional components that influence the chart layout, such as markers.