anychart.onDocumentReady(function () {
var chart = anychart.sparkline([50, 5, 10, 60, 20, 70, 30]);
chart.seriesType('column');
var customHatchFill = anychart.graphics.hatchFill('divot', '#424242', 0.5, 20);
chart.firstHatchFill(customHatchFill);
chart.title({text: 'Set hatch fill as an instance', orientation: 'top'});
chart.container('container');