Open this page in the API Guide

Diagram.onClick Method