Injects the behavior into a chart.
@override void attachTo(BaseChart<D> chart) { chart.addLifecycleListener(_lifecycleListener); }