$(function () { // Set click event handler function $(".selector").wijbarchart({ click : function (e, data) { } }); });
Parameters
- e
- Standard jQuery.Event object.
- data
An object that contains all the series information for the clicked bar.
data.bar: The Raphael object of the bar.
data.data: The data of the series of the bar.
data.hoverStyle: The hover style of the series of the bar.
data.index: The index of the bar.
data.label: The label of the series of the bar.
data.legendEntry: The legend entry of the series of the bar.
data.style: The style of the series of the bar.
data.type: "bar"