attachTo method
Injects the behavior into a chart.
Implementation
@override
void attachTo(BaseChart<D> chart) {
_chart = chart;
chart.addLifecycleListener(_lifecycleListener);
chart
.getSelectionModel(selectionModelType)
.addSelectionChangedListener(_selectionChanged);
chart.addView(this);
}