onDetach method

  1. @override
void onDetach(
  1. BaseChart<D> chart
)

Handles any clean-up of the renderer that needs to be performed when it is detached from a chart.

Implementation

@override
void onDetach(BaseChart<D> chart) {
  chart.removeView(this);
}