anychart.onDocumentReady(function () {
var chart = anychart.treeMap(data);
chart.title('Click on the chart and then double-click');
chart.listen('click', function (e) {
chart.title({fontColor: '#4CAF50'});
chart.listen('dblClick', function (e) {
chart.title('You can\'t click here anymore');
chart.title({fontColor: '#000000'});
chart.removeAllListeners();
chart.container('container');
name: 'Asia', children: [
name: 'Eastern Asia', children: [
{name: 'Mongolia', value: 1564116, capital: 'Ulan-Bator'},
{name: 'China', value: 1564116, capital: 'Beijing'},
{name: 'Southern Korea', value: 1564116, capital: 'Seoul'},
{name: 'Northern Korea', value: 120540, capital: 'Pyongyang'},
{name: 'Japan', value: 1564116, capital: 'Tokio'}
name: 'Europe', children: [
name: 'Northern Europe', children: [
{name: 'Finland', value: 338424, capital: 'Helsinki'},
{name: 'Great Britain', value: 209331, capital: 'London'},
{name: 'Ireland', value: 84421, capital: 'Dublin'},
{name: 'Scandinavia', value: 928057}