unit property

String? unit
final

Optional unit suffix for value formatting.

Used by tooltips and axis labels to display values with units. Common examples: 'W' (watts), 'bpm' (beats per minute), 'L' (liters).

Example:

LineChartSeries(
  id: 'power',
  points: [...],
  unit: 'W',  // Values displayed as "250 W"
)

Implementation

final String? unit;