anychart.onDocumentReady(function () {
var chart = anychart.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.andrewsPitchfork();
annotation.valueAnchor(9);
annotation.secondXAnchor(1.3);
annotation.secondValueAnchor(15);
annotation.thirdXAnchor(2.2);
annotation.thirdValueAnchor(15);
annotation.stroke(function () {
return anychart.color.setThickness(this.sourceColor, 3);
chart.title('Set stroke parameter as a function');
chart.container('container');