$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1451606400000,16.974],[1451692800000,16.974],[1451779200000,16.974],[1451865600000,16.974],[1451952000000,16.974],[1452038400000,16.6936],[1452124800000,16.3843],[1452211200000,16.3843],[1452297600000,16.3843],[1452384000000,16.3843],[1452470400000,16.3843],[1452556800000,16.3975],[1452643200000,16.1926],[1452729600000,16.506],[1452816000000,16.6494],[1452902400000,16.7767],[1452988800000,16.9123],[1453075200000,16.9123],[1453161600000,17.1205],[1453248000000,17.3171],[1453334400000,17.1356],[1453420800000,17.0463],[1453507200000,17.3759],[1453593600000,17.3759],[1453680000000,17.3759],[1453766400000,17.3595],[1453852800000,17.3757],[1453939200000,17.4231],[1454025600000,17.6286],[1454112000000,17.946],[1454198400000,17.946]], 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, 16.973998],[1451606400000, 16.973998],[1451692800000, 16.973998],[1451779200000, 16.973998],[1451865600000, 16.973998],[1451952000000, 16.973998],[1452038400000, 16.693634],[1452124800000, 16.384319],[1452211200000, 16.384319],[1452297600000, 16.384319],[1452384000000, 16.384319],[1452470400000, 16.384319],[1452556800000, 16.397484],[1452643200000, 16.192588],[1452729600000, 16.506031],[1452816000000, 16.649379],[1452902400000, 16.776694],[1452988800000, 16.912338],[1453075200000, 16.912338],[1453161600000, 17.120549],[1453248000000, 17.317064],[1453334400000, 17.135631],[1453420800000, 17.046283],[1453507200000, 17.375897],[1453593600000, 17.375897],[1453680000000, 17.375897],[1453766400000, 17.359524],[1453852800000, 17.375670],[1453939200000, 17.423094],[1454025600000, 17.628551],[1454112000000, 17.946040],[1454198400000, 17.946040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });