$(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: [[1451606400000,2.72703],[1451692800000,2.72703],[1451779200000,2.72703],[1451865600000,2.72703],[1451952000000,2.72703],[1452038400000,2.66562],[1452124800000,2.62371],[1452211200000,2.62371],[1452297600000,2.62371],[1452384000000,2.62371],[1452470400000,2.62371],[1452556800000,2.64458],[1452643200000,2.61566],[1452729600000,2.67514],[1452816000000,2.71566],[1452902400000,2.74737],[1452988800000,2.76959],[1453075200000,2.76959],[1453161600000,2.76995],[1453248000000,2.80647],[1453334400000,2.78301],[1453420800000,2.75283],[1453507200000,2.82995],[1453593600000,2.82995],[1453680000000,2.82995],[1453766400000,2.83908],[1453852800000,2.83886],[1453939200000,2.86526],[1454025600000,2.90298],[1454112000000,2.94228],[1454198400000,2.94228]], 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: [[1451606400000, 2.727031],[1451606400000, 2.727031],[1451692800000, 2.727031],[1451779200000, 2.727031],[1451865600000, 2.727031],[1451952000000, 2.727031],[1452038400000, 2.665619],[1452124800000, 2.623705],[1452211200000, 2.623705],[1452297600000, 2.623705],[1452384000000, 2.623705],[1452470400000, 2.623705],[1452556800000, 2.644575],[1452643200000, 2.615664],[1452729600000, 2.675142],[1452816000000, 2.715656],[1452902400000, 2.747372],[1452988800000, 2.769586],[1453075200000, 2.769586],[1453161600000, 2.769953],[1453248000000, 2.806470],[1453334400000, 2.783011],[1453420800000, 2.752829],[1453507200000, 2.829949],[1453593600000, 2.829949],[1453680000000, 2.829949],[1453766400000, 2.839081],[1453852800000, 2.838855],[1453939200000, 2.865257],[1454025600000, 2.902977],[1454112000000, 2.942284],[1454198400000, 2.942284]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });