ChartData: Object
The ChartData property contains data of the express report Chart view.
Use JSON or the setChartData method to set the property value, and the getChartData method to get the property value.
The property gets and returns the value as a JSON object that has the following fields: id - chart identifier, meta - metadata of the express report chart.
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 color and width in the Chart tab. Then get defined color and width of express report chart border:
var eaxAnalyzer = expressBox.getSource(); // Get data of express report chart var chartData = eaxAnalyzer.getChartData(); console.log("Color: " + chartData.meta.hiChart.chart.borderColor); console.log("Width: " + chartData.meta.hiChart.chart.borderWidth);
After executing the example the browser console displays current values for color and width of the border defines for express report chart:
Color: rgba(128, 128, 128, 1.000000)
Width: 0.944882
See also: