$(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: [[1241136000000,1.17161],[1241222400000,1.17161],[1241308800000,null],[1241395200000,1.17161],[1241481600000,1.17161],[1241568000000,1.18802],[1241654400000,1.17435],[1241740800000,1.1961],[1241827200000,1.19218],[1241913600000,1.19218],[1242000000000,1.19218],[1242086400000,1.19218],[1242172800000,1.19701],[1242259200000,1.17509],[1242345600000,1.17071],[1242432000000,1.1686],[1242518400000,1.1686],[1242604800000,1.1686],[1242691200000,1.17153],[1242777600000,1.18621],[1242864000000,1.18348],[1242950400000,1.18668],[1243036800000,1.19899],[1243123200000,1.19899],[1243209600000,1.19899],[1243296000000,1.20399],[1243382400000,1.18383],[1243468800000,1.19391],[1243555200000,1.178],[1243641600000,1.20973],[1243728000000,1.20973]], 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: [[1241136000000, 1.171614],[1241136000000, 1.171614],[1241222400000, 1.171614],[1241395200000, 1.171614],[1241481600000, 1.171614],[1241568000000, 1.188018],[1241654400000, 1.174349],[1241740800000, 1.196097],[1241827200000, 1.192179],[1241913600000, 1.192179],[1242000000000, 1.192179],[1242086400000, 1.192179],[1242172800000, 1.197008],[1242259200000, 1.175092],[1242345600000, 1.170715],[1242432000000, 1.168601],[1242518400000, 1.168601],[1242604800000, 1.168601],[1242691200000, 1.171535],[1242777600000, 1.186213],[1242864000000, 1.183478],[1242950400000, 1.186682],[1243036800000, 1.198994],[1243123200000, 1.198994],[1243209600000, 1.198994],[1243296000000, 1.203987],[1243382400000, 1.183835],[1243468800000, 1.193910],[1243555200000, 1.177996],[1243641600000, 1.209727],[1243728000000, 1.209727]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });