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 currentPlot = chart.plot();
currentPlot.line(mapping);
var rangePicker = anychart.ui.rangePicker();
rangePicker.format('dd MM yyyy');
chart.title("Set date time format for range picker");
chart.container("container");
chart.selectRange("YTD");
rangePicker.render(chart);