anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
{id: 'FR.A', title: 'Strasbourg', value: 928},
{id: 'FR.B', title: 'Bordeaux', value: 192},
{id: 'FR.C', title: 'Clermont-Ferrand', value: 963},
{id: 'FR.P', title: 'Caen', value: 266},
{id: 'FR.D', title: 'Dijon', value: 518},
{id: 'FR.E', title: 'Rennes', value: 324}
dataSet.mapAs({id: 'id'});
var map = anychart.map();
map.geoData(anychart.maps.france);
var series = map.choropleth(dataSet);
return this.getData('title');
map.container('container');
var point = series.getPoint(0);
var centerY = point.middleY();
map.title('Y center of the label: ' + centerY);