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: 3});
var chart = anychart.stock();
chart.padding(10, 10, 10, 50);
var nonePlot = chart.plot(0);
nonePlot.line(firstMapping);
nonePlot.line(secondMapping);
nonePlot.legend().titleFormat(function() {return "comparisonMode='none'"});
nonePlot.yScale().comparisonMode("none");
var valuePlot = chart.plot(1);
valuePlot.line(firstMapping);
valuePlot.line(secondMapping);
valuePlot.legend().titleFormat(function() {return "comparisonMode='value'"});
valuePlot.yScale().comparisonMode("value");
var percentPlot = chart.plot(2);
percentPlot.line(firstMapping);
percentPlot.line(secondMapping);
percentPlot.legend().titleFormat(function() {return "comparisonMode='percent'"});
percentPlot.yAxis().labels().format("{%value}%");
percentPlot.yScale().comparisonMode("percent");
chart.title("Stock: Different Comparison Modes");
chart.container("container");