Package-level declarations
Types
Link copied to clipboard
An extension of DrawContext that holds additional data required to render a Chart.
Functions
Link copied to clipboard
fun chartDrawContext(canvas: Canvas, elevationOverlayColor: Int, measureContext: MeasureContext, markerTouchPoint: Point?, horizontalDimensions: HorizontalDimensions, chartBounds: RectF, horizontalScroll: Float, zoom: Float): ChartDrawContext
The anonymous implementation of ChartDrawContext.
Link copied to clipboard
fun <Model : ChartEntryModel> ChartDrawContext.drawMarker(marker: Marker, markerTouchPoint: Point?, chart: Chart<Model>, markerVisibilityChangeListener: MarkerVisibilityChangeListener?, wasMarkerVisible: Boolean, setWasMarkerVisible: (Boolean) -> Unit, lastMarkerEntryModels: List<Marker.EntryModel>, onMarkerEntryModelsChange: (List<Marker.EntryModel>) -> Unit)
Draws the provided marker on top of the chart at the given markerTouchPoint and notifies the markerVisibilityChangeListener about the marker’s visibility changes.
Link copied to clipboard
fun MeasureContext.getAutoZoom(horizontalDimensions: HorizontalDimensions, chartBounds: RectF, autoScaleUp: AutoScaleUp): Float
Returns the automatic zoom factor for a chart.
Link copied to clipboard
fun MeasureContext.getMaxScrollDistance(chartWidth: Float, horizontalDimensions: HorizontalDimensions, zoom: Float? = null): Float
Returns the maximum scroll distance.