getMeasureContext
fun getMeasureContext(isHorizontalScrollEnabled: Boolean, canvasBounds: RectF, horizontalLayout: HorizontalLayout, spToPx: (Float) -> Float, chartValuesProvider: ChartValuesProvider): MutableMeasureContext
The anonymous implementation of the MeasureContext.
Parameters
isHorizontalScrollEnabled
whether horizontal scrolling is enabled.
canvasBounds
the bounds of the canvas that will be used to draw the chart and its components.
horizontalLayout
defines how the chart’s content is positioned horizontally.
spToPx
converts dimensions from sp to px.
chartValuesProvider
provides the chart’s ChartValues instances.