$(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: [[1417392000000,2.17304],[1417478400000,2.16096],[1417564800000,2.17139],[1417651200000,2.16933],[1417737600000,2.1791],[1417824000000,2.17613],[1417910400000,2.17613],[1417996800000,2.17613],[1418083200000,2.17841],[1418169600000,2.17049],[1418256000000,2.19667],[1418342400000,2.18792],[1418428800000,2.16803],[1418515200000,2.16803],[1418601600000,2.16803],[1418688000000,2.15173],[1418774400000,2.13596],[1418860800000,2.07315],[1418947200000,null],[1419033600000,2.1372],[1419120000000,2.1372],[1419206400000,2.1372],[1419292800000,2.15959],[1419379200000,2.11999],[1419465600000,2.13315],[1419552000000,2.1058],[1419638400000,2.10554],[1419724800000,2.10554],[1419811200000,2.10554],[1419897600000,2.12577],[1419984000000,2.12577]], 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: [[1417392000000, 2.173043],[1417392000000, 2.173043],[1417478400000, 2.160957],[1417564800000, 2.171390],[1417651200000, 2.169325],[1417737600000, 2.179102],[1417824000000, 2.176129],[1417910400000, 2.176129],[1417996800000, 2.176129],[1418083200000, 2.178410],[1418169600000, 2.170494],[1418256000000, 2.196671],[1418342400000, 2.187925],[1418428800000, 2.168028],[1418515200000, 2.168028],[1418601600000, 2.168028],[1418688000000, 2.151735],[1418774400000, 2.135962],[1418860800000, 2.073152],[1419033600000, 2.137202],[1419120000000, 2.137202],[1419206400000, 2.137202],[1419292800000, 2.159589],[1419379200000, 2.119991],[1419465600000, 2.133148],[1419552000000, 2.105804],[1419638400000, 2.105537],[1419724800000, 2.105537],[1419811200000, 2.105537],[1419897600000, 2.125770],[1419984000000, 2.125770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });