☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation

chartclick

[starting from version: 2.7.17]

Triggered once any chart element is clicked.

Data passed to the handler

Parameter/TypeDescription
chart
ChartDataObject
Contains information about the clicked chart segment.

Example

pivot.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