PrxChartView.EditMode

Syntax

EditMode: PP.Prx.Ui.ChartEditMode

Description

The EditMode property determines edit mode of a chart.

Comments

By default this property is set to None: that is, editing is disabled.

Example

To execute this example, the HTML page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The regular report sheet must contain a chart.

var prxChart = reportBox.getDataView().getGridView().getTabSheet().getModel().getObjects()[0].getITabObject(); //get regular report chart
prxChart.setEditMode("Point"); //set pointwise editing
prxChart.DataChanged.add(function (sender, args) {//when chart data is changed during editing, the console shows changed value in the edited series point
   console.log(args._Metadata.Value)
}); 

After executing the example pointwise chart editing is available. If data changes during chart editing the console shows new value of the edited series' point.

See also:

PrxChartView