Package-level declarations

Types

Link copied to clipboard

A base implementation of Chart.

Link copied to clipboard

Defines the minimal set of properties and functions required by other parts of the library to draw a chart.

Link copied to clipboard
class DefaultPointConnector(cubicStrength: Float = DefaultDimens.CUBIC_STRENGTH) : LineChart.LineSpec.PointConnector

The default implementation of LineChart.LineSpec.PointConnector. This uses cubic bezier curves.

Functions

Link copied to clipboard

Adds each Decoration from decorations to this Chart.

Link copied to clipboard
fun LineChart.LineSpec.copy(lineColor: Int = this.lineColor, lineThicknessDp: Float = this.lineThicknessDp, lineBackgroundShader: DynamicShader? = this.lineBackgroundShader, lineCap: Paint.Cap = this.lineCap, point: Component? = this.point, pointSizeDp: Float = this.pointSizeDp, dataLabel: TextComponent? = this.dataLabel, dataLabelVerticalPosition: VerticalPosition = this.dataLabelVerticalPosition, dataLabelValueFormatter: ValueFormatter = this.dataLabelValueFormatter, dataLabelRotationDegrees: Float = this.dataLabelRotationDegrees, pointConnector: LineChart.LineSpec.PointConnector = this.pointConnector): LineChart.LineSpec

Creates a new LineChart.LineSpec based on this one, updating select properties.

Link copied to clipboard

For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry as the block’s argument.

Link copied to clipboard

For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry and its index in the list as the block’s arguments.

For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry, its index in the list, and the next ChartEntry in the filtered list as the block’s arguments.

Link copied to clipboard

For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry and its index in the filtered list as the block’s arguments.

For each ChartEntry in the list such that ChartEntry.x belongs to the provided range, calls the action function block with the ChartEntry, its index in the filtered list, and the next ChartEntry in the filtered list as the block’s arguments.