MapChart.getLabelColor

Syntax

getLabelColor(item: PP.MapArrowBase | PP.MapShape | PP.MapVisualItem, color: String);

Parameters

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.

Description

The getLabelColor method returns data label border color.

Comments

If the MapChart.UseItemColorForLabelBorder property is set to False, the Null value is returned.

Example

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:

MapChart