Column

data class Column(val id: Long = 0, val title: CharSequence, val subtitle: CharSequence, val badge: CharSequence, val inactive: Boolean, val value: Float)

Represents a single bar in the chart.

Constructors

Link copied to clipboard
constructor(id: Long = 0, title: CharSequence, subtitle: CharSequence, badge: CharSequence, inactive: Boolean, value: Float)

Properties

Link copied to clipboard

Text to be shown in the popup when the item is selected.

Link copied to clipboard
val id: Long = 0

An optional identifier of the bar. This allows to save the selected element each time the model is updated.

Link copied to clipboard

Marking the item inactive means inactive colours from the palette, will be used to draw this item.

Link copied to clipboard

A secondary text placed just below the title.

Link copied to clipboard

A primary text placed just below the bar itself.

Link copied to clipboard

The value of the bar itself, should be a range between 0.0f and 1.0f. When a value bigger than 1.0f is set, a "peak" indicator will be show at the top of the bar.