anychart.onDocumentReady(function () {
var chart = anychart.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.rectangle();
annotation.valueAnchor(17.5);
annotation.secondXAnchor(2.1);
annotation.secondValueAnchor(18.5);
annotation.hatchFill(function () {
return {type: 'dashed-backward-diagonal'}
chart.title('Set hatch fill parameter as a function');
chart.container('container');