anychart.onDocumentReady(function () {
var chart = anychart.line([
chart.yScale().minimum(0);
var controller = chart.annotations();
var annotation = controller.verticalLine();
annotation.stroke(function () {
return anychart.color.setThickness(this.sourceColor, 3);
chart.title('Set stroke parameter as a function');
chart.container('container');