remove(id: String, dimAttrId: String);
id. Series identifier.
dimAttrId. Attribute identifier.
The remove method removes data for a specified series attribute.
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: