$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1464739200000,3.0089],[1464825600000,3.0128],[1464912000000,3.00207],[1464998400000,3.00338],[1465084800000,3.00338],[1465171200000,3.00338],[1465257600000,3.05119],[1465344000000,3.07146],[1465430400000,3.08309],[1465516800000,3.06631],[1465603200000,3.04959],[1465689600000,3.04959],[1465776000000,3.04959],[1465862400000,3.01664],[1465948800000,2.98617],[1466035200000,null],[1466121600000,2.96685],[1466208000000,2.97237],[1466294400000,2.97237],[1466380800000,2.97237],[1466467200000,2.97237],[1466553600000,3.00513],[1466640000000,3.00278],[1466726400000,3.04745],[1466812800000,2.92196],[1466899200000,2.92196],[1466985600000,2.92196],[1467072000000,2.92196],[1467158400000,2.92196],[1467244800000,2.96175]], 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.008904],[1464739200000, 3.008904],[1464825600000, 3.012800],[1464912000000, 3.002066],[1464998400000, 3.003383],[1465084800000, 3.003383],[1465171200000, 3.003383],[1465257600000, 3.051189],[1465344000000, 3.071457],[1465430400000, 3.083094],[1465516800000, 3.066315],[1465603200000, 3.049592],[1465689600000, 3.049592],[1465776000000, 3.049592],[1465862400000, 3.016642],[1465948800000, 2.986175],[1466121600000, 2.966849],[1466208000000, 2.972374],[1466294400000, 2.972374],[1466380800000, 2.972374],[1466467200000, 2.972374],[1466553600000, 3.005126],[1466640000000, 3.002779],[1466726400000, 3.047452],[1466812800000, 2.921964],[1466899200000, 2.921964],[1466985600000, 2.921964],[1467072000000, 2.921964],[1467158400000, 2.921964],[1467244800000, 2.961751]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });