onclick property

void onclick=(MouseEventCallback fn)

Set a callback for click event on each data point. This callback will be called when each data point clicked and will receive d and element as the arguments.

  • d is the data clicked and element is the element clicked. In this callback, this will be the Chart object.

Implementation

external set onclick(MouseEventCallback fn);