This event fires when the user clicks the chart element.
Default: null
Type: Function
Parameters:
e: A 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"
Code Example:
// Supply a function as an option.
$("#barchart").wijbarchart({click: function(e, data) { } });
// Bind to the event by type: wijbarchartclick
$("#barchart").bind("wijbarchartclick", function(e, data) {} );