anychart.onDocumentReady(function () {
var chart = anychart.heatMap(data);
chart.container('container');
var globalCoordinates = chart.localToGlobal(0, 0);
chart.title({text: 'Global coordinates [x: ' + globalCoordinates.x + ', y: ' + globalCoordinates.y + ']', orientation: 'top'});
{x: 'California', y: '2004', heat: 1704211},
{x: 'California', y: '2005', heat: 2782680},
{x: 'California', y: '2006', heat: 2992679},
{x: 'Illinois', y: '2004', heat: 727914},
{x: 'Illinois', y: '2005', heat: 1150659},
{x: 'Illinois', y: '2006', heat: 1134085},
{x: 'Massachusetts', y: '2004', heat: 238819},
{x: 'Massachusetts', y: '2005', heat: 157719},
{x: 'Massachusetts', y: '2006', heat: 887169},
{x: 'New York', y: '2004', heat: 1667969},
{x: 'New York', y: '2005', heat: 2763503},
{x: 'New York', y: '2006', heat: 3151022},
{x: 'Texas', y: '2004', heat: 219967},
{x: 'Texas', y: '2005', heat: 3732889},
{x: 'Texas', y: '2006', heat: 4185098}