BarData

data class BarData(val yValue: Float, val xValue: Any, val color: Color? = null) : ChartData

Data class representing a bar in a bar chart.

Parameters

yValue

The value of the bar on the y-axis.

xValue

The value of the bar on the x-axis. It can be of any type (e.g., String, Int, Float, etc.).

color

The color of the bar. If not specified, the default color will be used.

Constructors

Link copied to clipboard
constructor(yValue: Float, xValue: Any, color: Color? = null)

Properties

Link copied to clipboard
open override val chartString: String
Link copied to clipboard
val color: Color? = null
Link copied to clipboard
open override val xValue: Any
Link copied to clipboard
open override val yValue: Float