BarData

data class BarData(val point: Point, val color: Color = Color.Red, val label: String = "", val gradientColorList: List<Color> = listOf(Color.Red, Color.Blue), val dataCategoryOptions: DataCategoryOptions = DataCategoryOptions(), val description: String = if (dataCategoryOptions.isDataCategoryInYAxis) "Value of bar $label is value ${ String.format( "%.2f", point.x ) }" else "Value of bar $label is value ${String.format("%.2f", point.y)}")

Data class for individual bar.

Parameters

point

: Axis point

color

: Color of a bar

label

: label of a bar

gradientColorList

: Color list for the gradient bar

description

: Description to describe bar value for accessibility service.

Constructors

Link copied to clipboard
constructor(point: Point, color: Color = Color.Red, label: String = "", gradientColorList: List<Color> = listOf(Color.Red, Color.Blue), dataCategoryOptions: DataCategoryOptions = DataCategoryOptions(), description: String = if (dataCategoryOptions.isDataCategoryInYAxis) "Value of bar $label is value ${ String.format( "%.2f", point.x ) }" else "Value of bar $label is value ${String.format("%.2f", point.y)}")

Properties

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