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();
var plot1 = chart.plot(0);
secondXAnchor: 1131408000000,
secondValueAnchor: 12000,
var plot2 = chart.plot(1);
secondXAnchor: 1199232000000,
secondValueAnchor: 14500,
chart.container('container');
var selectAnnotation = plot1.annotations();
var annotation = chart.annotations();
annotation.select(selectAnnotation.getAnnotationAt(0));
var selectedAnnotation = annotation.getSelectedAnnotation();
var type = selectedAnnotation.getType();
chart.title('Get selected annotation and get type - ' + type);