anychart.onDocumentReady(function () {
var chart = anychart.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.fibonacciFan();
annotation.valueAnchor(10);
annotation.secondXAnchor(2);
annotation.secondValueAnchor(17);
var state = annotation.normal();
state.trend(function () {
return '2 ' + this.sourceColor;
chart.title('Set state trend parameter as a function');
chart.container('container');