anychart.onDocumentReady(function () {
var dataTable = anychart.data.table();
dataTable.addData(get_dji_daily_short_data());
var mapping = dataTable.mapAs({value: 1});
var chart = anychart.stock();
secondXAnchor: '2008-03-02',
chart.listen('annotationChange', function (e) {
var annotation = e.annotation;
chart.title('The ' + annotation.getType() + ' annotation has changed. \n Position:\n' +
'xAnchor: ' + anychart.format.dateTime(new Date(e.annotation.xAnchor()), 'dd MMMM yyyy') + '\n' +
'valueAnchor: ' + e.annotation.valueAnchor().toFixed() + '\n' +
'secondXAnchor: ' + anychart.format.dateTime(new Date(e.annotation.secondXAnchor()), 'dd MMMM yyyy') + '\n' +
'secondValueAnchor: ' + e.annotation.secondValueAnchor().toFixed());
chart.title('Drag annotation');
chart.container('container');