$(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: [[1459468800000,3.17058],[1459555200000,3.16175],[1459641600000,3.16175],[1459728000000,3.16175],[1459814400000,3.13504],[1459900800000,3.12038],[1459987200000,3.10531],[1460073600000,3.1012],[1460160000000,3.09219],[1460246400000,null],[1460332800000,null],[1460419200000,3.1047],[1460505600000,3.11398],[1460592000000,3.09207],[1460678400000,3.11515],[1460764800000,3.08951],[1460851200000,3.08951],[1460937600000,3.08951],[1461024000000,3.08739],[1461110400000,3.11743],[1461196800000,3.13156],[1461283200000,3.13121],[1461369600000,3.0878],[1461456000000,3.0878],[1461542400000,3.0878],[1461628800000,3.07778],[1461715200000,3.0948],[1461801600000,3.09746],[1461888000000,3.09397],[1461974400000,3.11846]], 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: [[1459468800000, 3.170581],[1459468800000, 3.170581],[1459555200000, 3.161747],[1459641600000, 3.161747],[1459728000000, 3.161747],[1459814400000, 3.135037],[1459900800000, 3.120376],[1459987200000, 3.105309],[1460073600000, 3.101198],[1460160000000, 3.092192],[1460419200000, 3.104703],[1460505600000, 3.113978],[1460592000000, 3.092074],[1460678400000, 3.115147],[1460764800000, 3.089510],[1460851200000, 3.089510],[1460937600000, 3.089510],[1461024000000, 3.087391],[1461110400000, 3.117429],[1461196800000, 3.131562],[1461283200000, 3.131205],[1461369600000, 3.087800],[1461456000000, 3.087800],[1461542400000, 3.087800],[1461628800000, 3.077777],[1461715200000, 3.094796],[1461801600000, 3.097456],[1461888000000, 3.093971],[1461974400000, 3.118458]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });