EaxMdService.setChartDrillDown

Syntax

setChartDrillDown(report: PP.Exp.EaxAnalyzer, metadata, callback: PP.Delegate);

Parameters

report. Express report, selection for which is drilled down the hierarchy.

metadata. Metadata is a series index and method of changing selection level that is set by the PP.Mb.DrillMethod enumeration.

callback. Callback function.

Description

The setChartDrillDown method drills selections down the hierarchy for express report chart.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), and a chart must be loaded in express report working area. Drill the selection one level down the hierarchy for this chart:

// Get a service for working with express report
var eaxMdService = expressBox.getService();
// Get express report document
var eaxAnalyzer = expressBox.getSource();
// Determine callback function
var onSetDrillDown = function () {
    expressBox.getDataView().getChartView().refreshAll();
    expressBox.getDataView().getGridView().PropertyChanged.fire(eaxMdService, new PP.Mb.Ui.PropertyChangedEventArgs({
        PropertyName: PP.Exp.Ui.ControlType.DrillDown,
        TypeUpdateData: [PP.Exp.Ui.ViewTypeUpdate.DimBarSelection, PP.Exp.Ui.ViewTypeUpdate.Table, PP.Exp.Ui.ViewTypeUpdate.Map]
    }));
    console.log("Selection is drilled one level down the hierarchy.");
};
// Drill selection position one level down the hierarchy for express report chart
eaxMdService.setChartDrillDown(eaxAnalyzer, {
    SerieIndex: 1,
    Method: PP.Mb.EaxDrillMethod.Down
}, PP.Delegate(onSetDrillDown, eaxMdService));

After executing the example express report selection is drilled one level down the hierarchy, and the browser console displays an appropriate message.

See also:

EaxMdService