$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1417392000000,0.127372],[1417478400000,0.127259],[1417564800000,0.127596],[1417651200000,0.127408],[1417737600000,0.128141],[1417824000000,0.128542],[1417910400000,0.128542],[1417996800000,0.128542],[1418083200000,0.128785],[1418169600000,0.128629],[1418256000000,0.130751],[1418342400000,0.131821],[1418428800000,0.132644],[1418515200000,0.132644],[1418601600000,0.132644],[1418688000000,0.133109],[1418774400000,0.132733],[1418860800000,0.135688],[1418947200000,null],[1419033600000,0.132726],[1419120000000,0.132726],[1419206400000,0.132726],[1419292800000,0.132966],[1419379200000,0.130557],[1419465600000,0.1312],[1419552000000,0.131029],[1419638400000,0.131012],[1419724800000,0.131012],[1419811200000,0.131012],[1419897600000,0.130872],[1419984000000,0.130872]], 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, 0.127372],[1417392000000, 0.127372],[1417478400000, 0.127259],[1417564800000, 0.127596],[1417651200000, 0.127408],[1417737600000, 0.128141],[1417824000000, 0.128542],[1417910400000, 0.128542],[1417996800000, 0.128542],[1418083200000, 0.128785],[1418169600000, 0.128629],[1418256000000, 0.130751],[1418342400000, 0.131821],[1418428800000, 0.132644],[1418515200000, 0.132644],[1418601600000, 0.132644],[1418688000000, 0.133109],[1418774400000, 0.132733],[1418860800000, 0.135688],[1419033600000, 0.132726],[1419120000000, 0.132726],[1419206400000, 0.132726],[1419292800000, 0.132966],[1419379200000, 0.130557],[1419465600000, 0.131200],[1419552000000, 0.131029],[1419638400000, 0.131012],[1419724800000, 0.131012],[1419811200000, 0.131012],[1419897600000, 0.130872],[1419984000000, 0.130872]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });