BarData

data class BarData(val yValue: Float, val xValue: Any, val barColor: ChartColor = Color.Unspecified.asSolidChartColor(), val barBackgroundColor: ChartColor = Color(0x40D3D3D3).asSolidChartColor())

Data class representing a single bar in a bar chart.

Constructors

Link copied to clipboard
constructor(yValue: Float, xValue: Any, barColor: ChartColor = Color.Unspecified.asSolidChartColor(), barBackgroundColor: ChartColor = Color(0x40D3D3D3).asSolidChartColor())

Properties

Link copied to clipboard

The background color of the bar, defaults to a light gray color.

Link copied to clipboard

The color of the bar, defaults to an unspecified color.

Link copied to clipboard
val xValue: Any

The x-axis value of the bar, can be of any type.

Link copied to clipboard

The y-axis value of the bar.