$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1451606400000,17.285],[1451692800000,17.285],[1451779200000,17.285],[1451865600000,17.285],[1451952000000,17.285],[1452038400000,17.0659],[1452124800000,16.6787],[1452211200000,16.6787],[1452297600000,16.6787],[1452384000000,16.6787],[1452470400000,16.6787],[1452556800000,16.6872],[1452643200000,16.4033],[1452729600000,16.6252],[1452816000000,16.6739],[1452902400000,16.656],[1452988800000,16.7907],[1453075200000,16.7907],[1453161600000,16.984],[1453248000000,17.1433],[1453334400000,16.848],[1453420800000,16.9597],[1453507200000,17.495],[1453593600000,17.495],[1453680000000,17.495],[1453766400000,17.493],[1453852800000,17.4738],[1453939200000,17.6629],[1454025600000,17.857],[1454112000000,18.1645],[1454198400000,18.1645]], 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, 17.285036],[1451606400000, 17.285036],[1451692800000, 17.285036],[1451779200000, 17.285036],[1451865600000, 17.285036],[1451952000000, 17.285036],[1452038400000, 17.065942],[1452124800000, 16.678732],[1452211200000, 16.678732],[1452297600000, 16.678732],[1452384000000, 16.678732],[1452470400000, 16.678732],[1452556800000, 16.687241],[1452643200000, 16.403291],[1452729600000, 16.625150],[1452816000000, 16.673853],[1452902400000, 16.656021],[1452988800000, 16.790689],[1453075200000, 16.790689],[1453161600000, 16.984018],[1453248000000, 17.143343],[1453334400000, 16.847980],[1453420800000, 16.959699],[1453507200000, 17.495019],[1453593600000, 17.495019],[1453680000000, 17.495019],[1453766400000, 17.492963],[1453852800000, 17.473761],[1453939200000, 17.662887],[1454025600000, 17.856986],[1454112000000, 18.164481],[1454198400000, 18.164481]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });