getLabelColor(item: PP.MapArrowBase | PP.MapShape | PP.MapVisualItem, color: String);
item. Arrow, map layer area or factor for data labels, for which border color must be determined.
color. Color used in case when data label border color is not selected. Optional parameter.
The getLabelColor method returns data label border color.
If the MapChart.UseItemColorForLabelBorder property is set to False, the Null value is returned.
To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Get data label border color:
// Get map area: Administrative Region Tver shape = map.getShape("RU-TVE"); // Get data label border color console.log(map.getLabelColor(shape));
After executing the example the console displays data label border color.
See also: