initialIndex property

int? initialIndex
final

Initial index to display when the chart loads.

If null, the chart will start at the last data point (most recent). The value will be clamped to valid indices (0 to labels.length - 1).

Example:

StackedAreaChart(
  data: yourData,
  initialIndex: 0, // Start at the first data point
)

Implementation

final int? initialIndex;