$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс DKK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс DKK', data: [[1464739200000,3.77043],[1464825600000,3.77012],[1464912000000,3.76797],[1464998400000,3.7492],[1465084800000,3.7492],[1465171200000,3.7492],[1465257600000,3.8125],[1465344000000,3.80917],[1465430400000,3.81655],[1465516800000,3.81378],[1465603200000,3.80297],[1465689600000,3.80297],[1465776000000,3.80297],[1465862400000,3.78378],[1465948800000,3.76113],[1466035200000,null],[1466121600000,3.74265],[1466208000000,3.76973],[1466294400000,3.76973],[1466380800000,3.76973],[1466467200000,3.76973],[1466553600000,3.78755],[1466640000000,3.77669],[1466726400000,3.80923],[1466812800000,3.70103],[1466899200000,3.70103],[1466985600000,3.70103],[1467072000000,3.70103],[1467158400000,3.70103],[1467244800000,3.70597]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1464739200000, 3.770434],[1464739200000, 3.770434],[1464825600000, 3.770121],[1464912000000, 3.767970],[1464998400000, 3.749202],[1465084800000, 3.749202],[1465171200000, 3.749202],[1465257600000, 3.812499],[1465344000000, 3.809170],[1465430400000, 3.816554],[1465516800000, 3.813781],[1465603200000, 3.802967],[1465689600000, 3.802967],[1465776000000, 3.802967],[1465862400000, 3.783785],[1465948800000, 3.761132],[1466121600000, 3.742646],[1466208000000, 3.769729],[1466294400000, 3.769729],[1466380800000, 3.769729],[1466467200000, 3.769729],[1466553600000, 3.787547],[1466640000000, 3.776686],[1466726400000, 3.809233],[1466812800000, 3.701026],[1466899200000, 3.701026],[1466985600000, 3.701026],[1467072000000, 3.701026],[1467158400000, 3.701026],[1467244800000, 3.705972]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });