anychart.onDocumentReady(function() {
var dataTable = anychart.data.table();
dataTable.addData(get_csco_daily_short_data());
var mapping = dataTable.mapAs({"value": 4});
var chart = anychart.stock();
var plot = chart.plot(0);
var lineSeries = plot.line(mapping);
var controller = plot.annotations();
rectangle1 = controller.rectangle({
secondXAnchor: "2007-03-25",
secondValueAnchor: 25.11,
hoverFill: "#398CAE 0.3",
hoverStroke: "2 #FF0000",
selectFill: "#398CAE 0.3",
selectHatchFill: "brick",
selectStroke: "5 #FF0000"
rectangle2 = controller.rectangle();
rectangle2.xAnchor("2005-11-20");
rectangle2.valueAnchor(15.55);
rectangle2.secondXAnchor("2007-02-25");
rectangle2.secondValueAnchor(23.30);
rectangle2.stroke("#2196F3", 3, "10 2");
chart.title("Rectangle: Visual Settings");
chart.container("container");