attachTo method
Injects the behavior into a chart.
Implementation
@override
void attachTo(BaseChart<D> chart) {
assert(chart is CartesianChart);
_chart = chart as CartesianChart<D>;
chart
.getSelectionModel(selectionModelType)
.addSelectionChangedListener(_selectionChanged);
}