selectIndex method

void selectIndex(
  1. int dataIndex, {
  2. int seriesIndex = 0,
  3. dynamic value,
})

Implementation

void selectIndex(int dataIndex, {int seriesIndex = 0, dynamic value}) {
  if (_disposed) return;
  _selection = ChartSelection(
    seriesIndex: seriesIndex,
    dataIndex: dataIndex,
    value: value,
  ).snapshot();
  _emitSelection(_selection);
  onDataPointTap?.call(seriesIndex, dataIndex, value);
  _notifyIfAlive();
}