getMetricOdId(viewType, metric);
viewType. PP.Exp.Ui.EaxObjectType. Visualizer type.
metric. PP.Exp.EaxObjectIndicator. Metric type.
The getMetricOdId method returns identifier of selected visualizer metric.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).
// Set metric type ind = PP.Exp.EaxObjectIndicator.Color; // Set visualizer type type = PP.Exp.Ui.EaxObjectType.BubbleChart; // Get metric identifier console.debug(eaxAnalyzer.getMetricOdId(type, ind)); // -> Object {id: "JCNEPLLHEFHKEOAEGGKBDFINGMKPKFFEFKCFPBCCNEGIAPPP!M…COBLKDNKOHIEFIMHGPBPIACLNMOF!EaxBubbleChart!Color"}
After executing the example the console displays identifier of the Color metric of the Bubble Chart visualizer.
See also: