anychart.onDocumentReady(function () {
var dataTable = anychart.data.table();
dataTable.addData(get_dji_daily_short_data());
var chart = anychart.stock();
plot.area(dataTable.mapAs({value: 1})).name('First series');
plot.line(dataTable.mapAs({value: 2})).name('Second series');
var tooltip = chart.tooltip();
tooltip.unionFormat(function () {
return 'Area series: ' + this.points[0].value + '\n' + 'Line series: '+ this.points[1].value;
chart.title('Set the union format using the function');
chart.container('container');