LineChartData

data class LineChartData(val label: String, val value: Float)

A single data point in a SimpleLineChart, pairing an X-axis label with a numeric Y value.

Points are plotted in list order and connected by straight line segments. The X axis is categorical (evenly spaced), not continuous.

See also

Constructors

Link copied to clipboard
constructor(label: String, value: Float)

Properties

Link copied to clipboard

Category or time-period name displayed below the corresponding point on the X axis. Labels are thinned automatically when the dataset exceeds maxLabelCount.

Link copied to clipboard

Numeric magnitude plotted on the Y axis. Negative values are clamped to zero for drawing (the axis floor never drops below zero); non-finite values (NaN, ±Infinity) are skipped entirely.