addPositionToDetailsForSeriesDatum method
DatumDetails<D>
addPositionToDetailsForSeriesDatum(
- DatumDetails<
D> details, - SeriesDatum<
D> seriesDatum
inherited
Adds chart position data to details
.
This is a helper function intended to be called from getDetailsForSeriesDatum. Every concrete SeriesRenderer needs to implement custom logic for setting location data.
Implementation
@override
DatumDetails<D> addPositionToDetailsForSeriesDatum(
DatumDetails<D> details, SeriesDatum<D> seriesDatum) {
final chartPosition =
_getChartPosition(details.series!.id, details.domain.toString());
return DatumDetails.from(details,
chartPosition: NullablePoint.from(chartPosition));
}