|
OnAfterServiceInvoke = function (args) {
if (args.action == "initialize") {
var PivotSchemaDesigner = $("#PivotSchemaDesigner").data('ejPivotSchemaDesigner');
if (PivotSchemaDesigner.model.pivotControl == null) {
PivotSchemaDesigner.model.pivotControl = this;
PivotSchemaDesigner.model.enableWrapper = true;
PivotSchemaDesigner.model.layout = "excel";
PivotSchemaDesigner._load();
}
}
var temp = JSON.parse(args.customObject);
$("#PivotChartControl").find("#PivotChart1").remove();
$("#PivotChartControl").append("<div id=\"PivotChart1\"></div>")
$("#PivotChart1").ejPivotChart({
url: "https://js.syncfusion.com/ejservices/wcf/PivotChart/Olap.svc", serviceMethodSettings: { initialize: "Initialize", drillDown: "Drill" },
type: ej.PivotChart.ChartTypes.Column, commonSeriesOptions: { enableAnimation: true, type: ej.PivotChart.ChartTypes.Column, tooltip: { visible: true } },
size: { height: "460px", width: "100%" },
afterServiceInvoke: function (args1) {
this.setJSONRecords(temp.JsonRecords);
this.setOlapReport(temp.OlapReport)
this.model.analysisMode = "pivot"
}
});
} |