anychart.onDocumentReady(function () {
var dataTable = anychart.data.table();
dataTable.addData(get_csco_daily_short_data());
var mapping = dataTable.mapAs({"value": 4});
chart = anychart.stock();
var series1 = chart.plot(0).line(mapping);
var series2 = chart.plot(1).area(mapping);
chart.plot(0).annotations().ellipse({
secondXAnchor: "2007-02-24",
secondValueAnchor: 18.05,
chart.plot(0).annotations().rectangle({
secondXAnchor: "2007-12-09",
chart.title("Serializing and Deserializing (XML)");
chart.container("container");
chart.listen("annotationDrawingFinish", function(){
document.getElementById("typeSelect").value = "default";
var select = document.getElementById("typeSelect");
chart.plot(0).annotations().startDrawing(select.value);
chart.plot(0).annotations().removeAllAnnotations();
var xml = chart.plot(0).annotations().toXml();
chart.plot(1).annotations().fromXml(xml);