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);
plot.line(mapping).name("CSCO");
plot.eventMarkers({"groups": [
"description": "Cisco announced the acquisition of Audium Corporation.",
"short_desc": "Audium Corporation Acquisition"
"description": "Cisco announced its intent to acquire PostPath, Inc.",
"short_desc": "PostPath Acquisition"
"description": "Cisco and Tata Consultancy Services announced strategic alliance.",
"short_desc": "Alliance with TCS"
"description": "Cisco unveiled 'Intelligent Urbanisation' vision for Bangalore.",
"short_desc": "Intelligent Urbanisation"
plot.eventMarkers().tooltip().titleFormat(function() {
return this.getData("short_desc") + " (" + this.symbol + ")";
plot.eventMarkers().tooltip().format(function() {
return "On " + anychart.format.dateTime(this.date, "MMMM dd") +
chart.title("Event Markers: Tooltips (Formatting Functions)");
chart.container("container");