overlayInfo property

OverlayInfoGetter? overlayInfo
final

How the overlay info are displayed, when user touches the chart.

If null, it defaults to display date, open, high, low, close and volume fields when user selects a data point in the chart.

To customize it, pass in a function that returns a Map<String,String>:

return {
  "Date": "Customized date string goes here",
  "Open": candle.open?.toStringAsFixed(2) ?? "-",
  "Close": candle.close?.toStringAsFixed(2) ?? "-",
};

Implementation

final OverlayInfoGetter? overlayInfo;