Wijmo UI for the Web
click Event
wijmo.chart.wijbarchart Namespace > options type : click Event
Standard jQuery.Event object.

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"

Fires when the user clicks the chart element.

Type: Function

Default: null

Syntax
$(function () {
    // Set click event handler function
    $(".selector").wijbarchart({
        click : function (e, data) {
     
        }
    });
});
click = function ( 
   e : jQuery.Event,
   data : IBarChartEventArgs
) { };

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"

Example
This example uses the function as an option.
$("#barchart").wijbarchart({click: function(e, data) { } });
This example binds to the event by type.
$("#barchart").bind("wijbarchartclick", function(e, data) {} );
See Also

Reference

options type
wijbarchart Method