Item

data class Item(val key: Any, val title: String, val subtitle: String, val group: String, val contentDescription: String, val values: BpkBarChartModel.Values? = null)

Represents a single bar in the chart.

Parameters

key

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

title

a primary text placed just below the bar itself.

subtitle

a secondary text placed just below the title.

group

name of the group in which the item exists. The name is rendered above the bars and updated as the chart scrolls horizontally.

contentDescription

the content description to be used for screen readers to read the values (e.g. "Monday the 7th of January, price is £142") It must include all important information, such as title, subtitle, text value and group – there's no information re-used by default.

values

the values of the bar itself. If null, the item becomes inactive.

Constructors

Link copied to clipboard
constructor(key: Any, title: String, subtitle: String, group: String, contentDescription: String, values: BpkBarChartModel.Values? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int