ComposedChart

Combines multiple Charts and draws them on top of one another.

Constructors

Link copied to clipboard
constructor(vararg charts: Chart<Model>)
constructor(charts: List<Chart<Model>>)

Properties

Link copied to clipboard

A Collection of the ChartInsetters that are part of this Chart. Each ChartInsetter can influence the final layout of the chart and its components.

Link copied to clipboard

The Charts that make up this ComposedChart.

Link copied to clipboard

Links x-axis values to Marker.EntryModels. A Marker.EntryModel holds the data needed to draw a Marker.

Link copied to clipboard
open override var maxX: Float?

The maximum value shown on the x-axis. If Model implements ChartEntryModel, and maxX is not null, this overrides ChartEntryModel.maxX.

Link copied to clipboard
open override var maxY: Float?

The maximum value shown on the y-axis. If Model implements ChartEntryModel, and maxY is not null, this overrides ChartEntryModel.maxY.

Link copied to clipboard
open override var minX: Float?

The minimum value shown on the x-axis. If Model implements ChartEntryModel, and minX is not null, this overrides ChartEntryModel.minX.

Link copied to clipboard
open override var minY: Float?

The minimum value shown on the y-axis. If Model implements ChartEntryModel, and minY is not null, this overrides ChartEntryModel.minY.

Link copied to clipboard

Provides the Chart’s ModelTransformer.

Functions

Link copied to clipboard

Responsible for drawing any decorations placed above the chart, as well as persistent markers.

Link copied to clipboard
open override fun getHorizontalInsets(context: MeasureContext, availableHeight: Float, outInsets: HorizontalInsets)

Called during the measurement phase, after getInsets. Only horizontal insets can be requested from this function. Unless the available height is of interest, getInsets can be used to set all insets. The final inset for a given edge of the associated Chart is the largest of the insets requested for the edge.

Link copied to clipboard
open override fun getInsets(context: MeasureContext, outInsets: Insets, horizontalDimensions: HorizontalDimensions)

Called during the measurement phase, before getHorizontalInsets. Both horizontal and vertical insets can be requested from this function. The final inset for a given edge of the associated Chart is the largest of the insets requested for the edge.

Link copied to clipboard

Combines this ComposedChart with a Chart to create a ComposedChart.

Combines this ComposedChart and another one into a single ComposedChart.

Link copied to clipboard
open override fun setBounds(left: Number, top: Number, right: Number, bottom: Number)

Sets the coordinates of the bounds to the provided values.

Link copied to clipboard
open override fun updateChartValues(chartValuesManager: ChartValuesManager, model: ComposedChartEntryModel<Model>, xStep: Float?)

Updates the ChartValues stored in the provided ChartValuesManager instance to this Chart’s ChartValues.

Link copied to clipboard
open override fun updateHorizontalDimensions(context: MeasureContext, horizontalDimensions: MutableHorizontalDimensions, model: ComposedChartEntryModel<Model>)

Updates the chart’s MutableHorizontalDimensions instance.