getAreMetricsOn();
The getAreMetricsOn method determines whether visualizer has metrics dimension.
The method returns True if visualizer has metrics dimension, and False if there is not metrics dimension.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), and a bubble tree visualizer must be selected. Output information about whether there are dimension metrics to the console:
// Get the bubbleTreeBox component dataView=expressBox.getDataView(); treeView = dataView.getBubbleTreeView(); // Output information whether metrics dimension is available to the console console.debug(treeView.getAreMetricsOn() ? "Visualizer contains metrics dimension " : "Visualizer does not contain metrics dimension" );
After executing the example information about whether visualizer contains metrics dimension is displayed.
See also: