addDefaultInteractions method

void addDefaultInteractions(
  1. List<ChartBehavior> behaviors
)

Create the list of default interaction behaviors.

Subclasses can override this method to customize the default interactions that are added to the chart.

behaviors The list of ChartBehavior to add the default interactions to.

Implementation

void addDefaultInteractions(List<ChartBehavior> behaviors) {
  // Update selection model
  behaviors.add(
    SelectNearest<D>(),
  );
}