$(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: [[1493596800000,3.90292],[1493683200000,3.90292],[1493769600000,3.90292],[1493856000000,3.89406],[1493942400000,3.89175],[1494028800000,3.90712],[1494115200000,3.90712],[1494201600000,3.90712],[1494288000000,3.90712],[1494374400000,3.90712],[1494460800000,3.86906],[1494547200000,3.85772],[1494633600000,3.86998],[1494720000000,3.86998],[1494806400000,3.86998],[1494892800000,3.90416],[1494979200000,3.92944],[1495065600000,3.94719],[1495152000000,3.94728],[1495238400000,3.9616],[1495324800000,3.9616],[1495411200000,3.9616],[1495497600000,3.97896],[1495584000000,3.96299],[1495670400000,3.95077],[1495756800000,3.96009],[1495843200000,3.96375],[1495929600000,3.96375],[1496016000000,3.96375],[1496102400000,3.96783],[1496188800000,3.95773]], 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: [[1493596800000, 3.902921],[1493596800000, 3.902921],[1493683200000, 3.902921],[1493769600000, 3.902921],[1493856000000, 3.894063],[1493942400000, 3.891751],[1494028800000, 3.907124],[1494115200000, 3.907124],[1494201600000, 3.907124],[1494288000000, 3.907124],[1494374400000, 3.907124],[1494460800000, 3.869057],[1494547200000, 3.857719],[1494633600000, 3.869985],[1494720000000, 3.869985],[1494806400000, 3.869985],[1494892800000, 3.904163],[1494979200000, 3.929443],[1495065600000, 3.947190],[1495152000000, 3.947276],[1495238400000, 3.961597],[1495324800000, 3.961597],[1495411200000, 3.961597],[1495497600000, 3.978963],[1495584000000, 3.962991],[1495670400000, 3.950771],[1495756800000, 3.960093],[1495843200000, 3.963754],[1495929600000, 3.963754],[1496016000000, 3.963754],[1496102400000, 3.967833],[1496188800000, 3.957734]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });