anychart.onDocumentReady(function () {
var chart = anychart.line();
chart.line([1, -4, 5, 7, 3, 8, 5]);
chart.textMarker(0, {value: 6, text: "Marker 0", axis: chart.yAxis()});
chart.textMarker(1, {value: 2, text: "Marker 1", axis: chart.yAxis()});
chart.title("Set chart text marker parameters as object by index.");
chart.container("container");