$(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: [[1483228800000,3.13169],[1483315200000,3.13169],[1483401600000,3.13169],[1483488000000,3.13169],[1483574400000,3.0987],[1483660800000,3.0987],[1483747200000,3.18383],[1483833600000,3.18383],[1483920000000,3.18383],[1484006400000,3.18383],[1484092800000,3.16566],[1484179200000,3.14201],[1484265600000,3.21126],[1484352000000,null],[1484438400000,3.25659],[1484524800000,3.25659],[1484611200000,3.24303],[1484697600000,3.2669],[1484784000000,3.24558],[1484870400000,3.24585],[1484956800000,3.24058],[1485043200000,3.24058],[1485129600000,3.24058],[1485216000000,3.25626],[1485302400000,3.26742],[1485388800000,3.2676],[1485475200000,3.2638],[1485561600000,3.25642],[1485648000000,3.25642],[1485734400000,3.25642],[1485820800000,3.24788]], 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: [[1483228800000, 3.131691],[1483228800000, 3.131691],[1483315200000, 3.131691],[1483401600000, 3.131691],[1483488000000, 3.131691],[1483574400000, 3.098696],[1483660800000, 3.098696],[1483747200000, 3.183832],[1483833600000, 3.183832],[1483920000000, 3.183832],[1484006400000, 3.183832],[1484092800000, 3.165656],[1484179200000, 3.142012],[1484265600000, 3.211257],[1484438400000, 3.256587],[1484524800000, 3.256587],[1484611200000, 3.243027],[1484697600000, 3.266896],[1484784000000, 3.245580],[1484870400000, 3.245850],[1484956800000, 3.240579],[1485043200000, 3.240579],[1485129600000, 3.240579],[1485216000000, 3.256257],[1485302400000, 3.267415],[1485388800000, 3.267604],[1485475200000, 3.263800],[1485561600000, 3.256423],[1485648000000, 3.256423],[1485734400000, 3.256423],[1485820800000, 3.247880]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });