Wijmo UI for the Web
mouseDown Event
wijmo.chart.wijbarchart Namespace > options type : mouseDown 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"

This event fires when the user clicks a mouse button.

Type: Function

Default: null

Syntax
$(function () {
    // Set mouseDown event handler function
    $(".selector").wijbarchart({
        mouseDown : function (e, data) {
     
        }
    });
});
mouseDown = 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({mouseDown: function(e, data) { } });
This example binds to the event by type.
$("#barchart").bind("wijbarchartmousedown", function(e, data) {} );
See Also

Reference

options type
wijbarchart Method