anychart.onDocumentReady(function () {
var dataTable = anychart.data.table();
dataTable.addData(get_dji_daily_short_data());
var mapping1 = dataTable.mapAs({
var mapping2 = dataTable.mapAs({value: 1});
var chart = anychart.stock();
var plot1 = chart.plot();
var plot2 = chart.plot(1);
var eventMarkers = chart.eventMarkers();
{date: '2006-05-11', type: 'pin', title: 'E'},
{date: '2007-05-14', type: 'flag', title: 'H'}
eventMarkers.format(function () {
return this.getData('title');
chart.selectRange('2005-01-01', '2008-01-01');
chart.title('Set format parameter as a function');
chart.container('container');