anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var pattern = stage.pattern(new anychart.graphics.math.Rect(0, 0, 20, 20));
pattern.star7(10, 10, 8).stroke('#78909C');
var chart = anychart.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.horizontalRange();
annotation.valueAnchor(15);
annotation.secondValueAnchor(18.5);
annotation.hatchFill(pattern);
chart.title('Set hatch fill parameter as a pattern');