clearInstance();
The clearInstance method removes an instance of express report bubble chart.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded bubble chart in the working area. Remove an instance of express report bubble chart:
// Get a list of panels of express report bubble chart wizard var panels = expressBox.getPropertyBarView().getBubbleChartMaster().getItems(); for (var i in panels) { var panel = panels[i]; if (panel.getTypeName() == "BubbleChartColorIndicator") { var bubbleChartView = panel.getDataView(); bubbleChartView.clearInstance(); if (bubbleChartView.getInstance() == null) { console.log("Instance of express report bubble chart is successfully removed."); } else { console.log("Instance of express report bubble chart is not removed."); } } }
After executing the example an instance of express report bubble chart is removed and the browser console displays an appropriate message:
Instance of express report bubble chart is successfully removed.
See also: