$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1464739200000,3.0183],[1464825600000,3.02212],[1464912000000,3.01547],[1464998400000,3.01143],[1465084800000,3.01143],[1465171200000,3.01143],[1465257600000,3.06686],[1465344000000,3.07102],[1465430400000,3.07548],[1465516800000,3.06817],[1465603200000,3.03298],[1465689600000,3.03298],[1465776000000,3.03298],[1465862400000,3.01664],[1465948800000,3.00127],[1466035200000,null],[1466121600000,2.96315],[1466208000000,2.98806],[1466294400000,2.98806],[1466380800000,2.98806],[1466467200000,2.98806],[1466553600000,3.02053],[1466640000000,3.00557],[1466726400000,3.04624],[1466812800000,2.9093],[1466899200000,2.9093],[1466985600000,2.9093],[1467072000000,2.9093],[1467158400000,2.9093],[1467244800000,2.92262]], 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.018295],[1464739200000, 3.018295],[1464825600000, 3.022118],[1464912000000, 3.015470],[1464998400000, 3.011426],[1465084800000, 3.011426],[1465171200000, 3.011426],[1465257600000, 3.066864],[1465344000000, 3.071024],[1465430400000, 3.075477],[1465516800000, 3.068172],[1465603200000, 3.032976],[1465689600000, 3.032976],[1465776000000, 3.032976],[1465862400000, 3.016642],[1465948800000, 3.001269],[1466121600000, 2.963153],[1466208000000, 2.988057],[1466294400000, 2.988057],[1466380800000, 2.988057],[1466467200000, 2.988057],[1466553600000, 3.020532],[1466640000000, 3.005574],[1466726400000, 3.046240],[1466812800000, 2.909301],[1466899200000, 2.909301],[1466985600000, 2.909301],[1467072000000, 2.909301],[1467158400000, 2.909301],[1467244800000, 2.922622]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });