EaxAnalyzer.ChartChangedData

Syntax

ChartChangedData: Object

Description

The ChartChangedData property contains changed data of express report chart.

Comments

Use JSON or the setChartChangedData method to set the property value, and the getChartChangedData method to get the property value.

The property gets and returns a value as a JSON object with the following fields: chart (chart object), colors (colors), editMode (the Edit Mode checkbox), title (chart title), xAxis (category axis), yAxis (value axis), legend (chart legend), plotOptions (print options), and so on.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). The user can also manually open the context menu Settings for express report chart and edit border width in the Chart tab. Then define changed value of chart border width and clear the metadata:

var eaxAnalyzer = expressBox.getSource();
// Get changed data of express report chart
var chartData = eaxAnalyzer.getChartChangedData();
if (chartData != null & chartData != undefined) {
    console.log("Chart border width: " + chartData.chart.borderWidth);
    eaxAnalyzer.clearViewData();
    chartData = eaxAnalyzer.getChartChangedData();
    console.log("Changed chart data after metadata clearing: " + chartData);
} else {
    console.log("Changed chart data is not specified.");
};

After executing the example the browser console displays changed value of chart border width, and also all changed chart data after it is cleared:

Chart border width: 2

Changed chart data after clearing metadata: null

See also:

EaxAnalyzer