$(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: [[1477958400000,3.09139],[1478044800000,null],[1478131200000,3.12529],[1478217600000,3.12648],[1478304000000,3.11441],[1478390400000,3.11441],[1478476800000,3.11441],[1478563200000,3.10718],[1478649600000,3.10918],[1478736000000,3.08954],[1478822400000,3.07159],[1478908800000,3.06616],[1478995200000,3.06616],[1479081600000,3.06616],[1479168000000,3.038],[1479254400000,3.08225],[1479340800000,3.10793],[1479427200000,3.07241],[1479513600000,3.02336],[1479600000000,3.02336],[1479686400000,3.02336],[1479772800000,3.01738],[1479859200000,3.00808],[1479945600000,2.99162],[1480032000000,2.9706],[1480118400000,3.00445],[1480204800000,3.00445],[1480291200000,3.00445],[1480377600000,2.99052],[1480464000000,2.98286]], 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: [[1477958400000, 3.091394],[1477958400000, 3.091394],[1478131200000, 3.125294],[1478217600000, 3.126483],[1478304000000, 3.114412],[1478390400000, 3.114412],[1478476800000, 3.114412],[1478563200000, 3.107185],[1478649600000, 3.109179],[1478736000000, 3.089542],[1478822400000, 3.071591],[1478908800000, 3.066155],[1478995200000, 3.066155],[1479081600000, 3.066155],[1479168000000, 3.037997],[1479254400000, 3.082254],[1479340800000, 3.107931],[1479427200000, 3.072412],[1479513600000, 3.023362],[1479600000000, 3.023362],[1479686400000, 3.023362],[1479772800000, 3.017379],[1479859200000, 3.008082],[1479945600000, 2.991618],[1480032000000, 2.970599],[1480118400000, 3.004445],[1480204800000, 3.004445],[1480291200000, 3.004445],[1480377600000, 2.990523],[1480464000000, 2.982857]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });