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 rangeSelector = anychart.ui.rangeSelector();
rangeSelector.ranges().pop();
rangeSelector.ranges()[0].count=5;
rangeSelector.ranges()[0].text="5 DAY";
chart.title("Set custom ranges for range selector");
chart.container("container");
rangeSelector.render(chart);