Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Regions
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

Layout in the form of a pie chart

Save as filesEdit on JSFiddle

Pie chart layout layout.PieChart. Available in the layout storage by the key 'default#pieChart'. The layout can be used as a tool for visualizing any data, or in combination with other visual API components such as placemarks, the clusterer, and the objects manager.

The layout can be based on statistical data that should be an array of JSON objects with the "weight" and "color" fields or a function that returns this array (see the "Placemark" example). If "properties.data" is missing, the layout traverses all geo objects, determines the value of the "iconColor" option for each object, and generates a diagram based on this data.