$(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: [[1414800000000,1.9284],[1414886400000,1.9284],[1414972800000,1.9284],[1415059200000,1.91043],[1415145600000,1.91202],[1415232000000,1.96912],[1415318400000,2.03134],[1415404800000,2.1268],[1415491200000,2.1268],[1415577600000,2.1268],[1415664000000,2.15935],[1415750400000,2.33776],[1415836800000,2.3057],[1415923200000,2.29801],[1416009600000,2.27017],[1416096000000,2.27017],[1416182400000,2.27017],[1416268800000,null],[1416355200000,2.2583],[1416441600000,2.25666],[1416528000000,2.23544],[1416614400000,2.22906],[1416700800000,2.22906],[1416787200000,2.22906],[1416873600000,2.22667],[1416960000000,2.2154],[1417046400000,2.1981],[1417132800000,2.19403],[1417219200000,2.17304],[1417305600000,2.17304]], 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: [[1414800000000, 1.928405],[1414800000000, 1.928405],[1414886400000, 1.928405],[1414972800000, 1.928405],[1415059200000, 1.910426],[1415145600000, 1.912024],[1415232000000, 1.969124],[1415318400000, 2.031336],[1415404800000, 2.126804],[1415491200000, 2.126804],[1415577600000, 2.126804],[1415664000000, 2.159345],[1415750400000, 2.337760],[1415836800000, 2.305701],[1415923200000, 2.298010],[1416009600000, 2.270172],[1416096000000, 2.270172],[1416182400000, 2.270172],[1416355200000, 2.258304],[1416441600000, 2.256664],[1416528000000, 2.235440],[1416614400000, 2.229060],[1416700800000, 2.229060],[1416787200000, 2.229060],[1416873600000, 2.226674],[1416960000000, 2.215397],[1417046400000, 2.198101],[1417132800000, 2.194029],[1417219200000, 2.173043],[1417305600000, 2.173043]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });