ChartCanvasSerie.IsEditingNow

Syntax

IsEditingNow: Boolean;

Description

The IsEditingNow property determines whether chart data series is currently being edited.

Comments

Use JSON or the setIsEditingNow method to set the property value, and the getIsEditingNow method to get the property value.

Available values:

Example

Executing the example requires that the HTML page contains the Chart component named chart (see Example of Creating a Line Chart). Enable edit mode for chart data:

// Remove legend
chart.getLegend().dispose();
// Enable data series edit mode
var editMode = chart.getEditMode();
editMode.setEnabled(true);

After executing the example edit mode is enabled for the chart data. To activate this mode, twice select the desired data series. Perform this for the second data series.

Now check if the edit mode for the second data series is currently available:

// Get the second data series
var serie = chart.getSeries()[1];
if (serie.getIsEditingNow()) {
    console.log("The data series %s is currently being edited", serie.getId());
} else {
    console.log("The data series %s is currently not being edited", serie.getId());
}

After executing the example the browser console displays the following message:

The data series Serie1 is currently being edited

See also:

ChartCanvasSerie