getExpandedDatumDetails method
Returns an expanded DatumDetails object that contains location data.
Implementation
DatumDetails<D> getExpandedDatumDetails(SeriesDatum<D> seriesDatum) {
final series = seriesDatum.series;
final Object? datum = seriesDatum.datum;
final datumIndex = seriesDatum.index;
final domain = series.domainFn(datumIndex);
final measure = series.measureFn(datumIndex);
final color = series.colorFn!(datumIndex);
final chartPosition = _getChartPosition(series.id, '${series.id}__$domain');
return DatumDetails(
datum: datum,
domain: domain,
measure: measure,
series: series,
color: color,
chartPosition: NullablePoint.from(chartPosition),
);
}