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

An object that contains old and new series values.

data.oldSeriesList: The old series list before changes.

data.newSeriesList: The new series list that will replace the old one.

This event fires before the series changes. You can cancel the event using "return false."

Type: Function

Default: null

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

Parameters

e
Standard jQuery.Event object.
data

An object that contains old and new series values.

data.oldSeriesList: The old series list before changes.

data.newSeriesList: The new series list that will replace the old one.

Example
This code, which uses the function as an option, cancels the event.
$("#barchart").wijbarchart({
    beforeSeriesChange: function(e, data) {
        return false;
    }
});
This example shows how to bind to the event by type.
$("#barchart").bind("wijbarchartbeforeserieschange", function(e, data) {} );
See Also

Reference

options type
wijbarchart Method