anychart.onDocumentReady(function () {
var chart = anychart.area();
var series = chart.stepArea([
{x: 'January', value: 125},
{x: 'February', value: 132},
{x: 'March', value: 141},
{x: 'April', value: 158},
series.hatchFill(function () {
return {type: 'diagonal-cross', color: '#ffffff', thickness: 2, size: 20}
chart.title('Set hatch fill parameter as a function');
chart.container('container');