anychart.onDocumentReady(function () {
var dataTable = anychart.data.table();
dataTable.addData(get_dji_daily_short_data());
var firstMapping = dataTable.mapAs({value: 1});
var secondMapping = dataTable.mapAs({value: 2});
var thirdMapping = dataTable.mapAs({value: 3});
var chart = anychart.stock();
chart.padding(10, 10, 10, 50);
var firstPlot = chart.plot();
firstPlot.line(firstMapping);
firstPlot.line(secondMapping);
firstPlot.line(thirdMapping);
firstPlot.palette(["#827717", "#c77532", "#998675"]);
var secondPlot = chart.plot(1);
secondPlot.stepLine(firstMapping);
secondPlot.spline(secondMapping);
secondPlot.column(thirdMapping);
var linePlotPalette = firstPlot.palette();
secondPlot.palette(linePlotPalette);
chart.title("Get and use palette.");
chart.container("container");