setBorderColor(color: PP.Color || string);
color. Color to be set.
The setBorderColor method sets data label border color.
To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Set data label border color.
// Get data area: Administrative Region Tver shape = map.getShape("RU-TVE"); // Enable displaying of data label shape.toggleLabel(true); // Get data label label = shape.getLabel(); // Set data label border color label.setBorderColor("#FF0000");
After executing the example data label border color is set.
See also: