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.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.finiteTrendChannel();
annotation.valueAnchor(13.5);
annotation.secondXAnchor(2);
annotation.secondValueAnchor(19);
annotation.channelWidth(-2);
annotation.hatchFill(pattern);
chart.title('Set hatch fill as a pattern');