DataSource.remove

Syntax

remove(id: String, dimAttrId: String);

Parameters

id. Series identifier.

dimAttrId. Attribute identifier.

Description

The remove method removes data for a specified series attribute.

Example

To execute the example, the HTML page must contain the component named bubbleChart (see Example of Creating the BubbleChart ComponentBubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Remove series attributes and show appropriate message:

// Get data source
var dataSource = bubbleChart.getDataSources().ds0;
// Remove series attributes
dataSource.remove("Serie0_Point0", "DimX");
// Show the message that the data has been deleted
if (dataSource.getSeries().Serie0_Point0.DimX == null) {
    console.log("Series attributes have been deleted");
}

After executing the example the browser console displays a message that corresponding data was removed:

Series attributes were removed

See also:

DataSource