anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var pattern = stage.pattern(new anychart.graphics.math.Rect(0, 0, 20, 20));
pattern.star5(10, 10, 8).stroke('#78909C');
var chart = anychart.heatMap(data);
chart.hatchFill(pattern);
chart.title('Set chart hatch fill as a pattern');
{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}