$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1451606400000,33.2855],[1451692800000,33.2855],[1451779200000,33.2855],[1451865600000,33.2855],[1451952000000,33.2855],[1452038400000,32.8111],[1452124800000,32.425],[1452211200000,32.425],[1452297600000,32.425],[1452384000000,32.425],[1452470400000,32.425],[1452556800000,32.567],[1452643200000,32.1581],[1452729600000,32.6253],[1452816000000,33.1702],[1452902400000,33.4644],[1452988800000,33.735],[1453075200000,33.735],[1453161600000,34.0866],[1453248000000,34.3032],[1453334400000,34.0928],[1453420800000,33.8796],[1453507200000,34.1934],[1453593600000,34.1934],[1453680000000,34.1934],[1453766400000,34.2102],[1453852800000,34.2433],[1453939200000,34.3492],[1454025600000,34.77],[1454112000000,35.2786],[1454198400000,35.2786]], 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, 33.285487],[1451606400000, 33.285487],[1451692800000, 33.285487],[1451779200000, 33.285487],[1451865600000, 33.285487],[1451952000000, 33.285487],[1452038400000, 32.811065],[1452124800000, 32.424982],[1452211200000, 32.424982],[1452297600000, 32.424982],[1452384000000, 32.424982],[1452470400000, 32.424982],[1452556800000, 32.566972],[1452643200000, 32.158082],[1452729600000, 32.625350],[1452816000000, 33.170197],[1452902400000, 33.464400],[1452988800000, 33.734969],[1453075200000, 33.734969],[1453161600000, 34.086607],[1453248000000, 34.303225],[1453334400000, 34.092822],[1453420800000, 33.879580],[1453507200000, 34.193447],[1453593600000, 34.193447],[1453680000000, 34.193447],[1453766400000, 34.210228],[1453852800000, 34.243343],[1453939200000, 34.349206],[1454025600000, 34.769980],[1454112000000, 35.278631],[1454198400000, 35.278631]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });