ZoomCharts Documentation

Version: 1.21.1 (2025-02-07)
Switch to Version 2.0 (BETA)

Events

Network Chart provides a set of events for your application to use.

Specifying event handlers

The event handlers can be specified using settings or added dynamically.

Using settings:

    new NetworkChart({
      ...
      events:{
        onClick: function(event){...},
        onSelectionChange: function(event){...}
      },
      ...
    });

Dynamically use chart.on(eventName, handler) and chart.off(eventName,handler) functions. In this case skip the "on" part in event name: onClick becomes click.

Default behavior

To disable default behavior, implement event handler and call event.preventDefault().

Event properties

Events have the following properties

And the following functions

X