Get Free Trial
API reference
Table of contents

chartclick

[starting from version: 2.7.17]

Triggered once any chart element is clicked.

Data passed to the handler

chart – ChartDataObject. It contains information about the clicked chart segment.

Example

flexmonster.on('chartclick', function(chart) {
    alert(
        "Click on chart segment with label: " +
        chart.label + ", measure: " +
        chart.measure.uniqueName +
        ", value: " +
        chart.value);
});

Open the example on JSFiddle.

See also

cellclick
on
off