anychart.onDocumentReady(function () {
var chart = anychart.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.triangle();
annotation.valueAnchor(17);
annotation.secondXAnchor(2);
annotation.secondValueAnchor(19);
annotation.thirdXAnchor(2.2);
annotation.thirdValueAnchor(17);
annotation.hatchFill(function () {
return {type: 'dashed-backward-diagonal'}
chart.title('Set hatch fill parameter as a function');
chart.container('container');