$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1451606400000,0.00129],[1451692800000,0.00129],[1451779200000,0.00129],[1451865600000,0.00129],[1451952000000,0.00129],[1452038400000,0.00127],[1452124800000,0.00125],[1452211200000,0.00125],[1452297600000,0.00125],[1452384000000,0.00125],[1452470400000,0.00125],[1452556800000,0.00123],[1452643200000,0.00121],[1452729600000,0.00122],[1452816000000,0.00123],[1452902400000,0.00122],[1452988800000,0.00121],[1453075200000,0.00121],[1453161600000,0.00121],[1453248000000,0.00122],[1453334400000,0.00121],[1453420800000,0.00114],[1453507200000,0.00118],[1453593600000,0.00118],[1453680000000,0.00118],[1453766400000,0.0012],[1453852800000,0.00117],[1453939200000,0.00116],[1454025600000,0.00118],[1454112000000,0.00123],[1454198400000,0.00123]], 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, 0.001290],[1451606400000, 0.001290],[1451692800000, 0.001290],[1451779200000, 0.001290],[1451865600000, 0.001290],[1451952000000, 0.001290],[1452038400000, 0.001270],[1452124800000, 0.001250],[1452211200000, 0.001250],[1452297600000, 0.001250],[1452384000000, 0.001250],[1452470400000, 0.001250],[1452556800000, 0.001230],[1452643200000, 0.001210],[1452729600000, 0.001220],[1452816000000, 0.001230],[1452902400000, 0.001220],[1452988800000, 0.001210],[1453075200000, 0.001210],[1453161600000, 0.001210],[1453248000000, 0.001220],[1453334400000, 0.001210],[1453420800000, 0.001140],[1453507200000, 0.001180],[1453593600000, 0.001180],[1453680000000, 0.001180],[1453766400000, 0.001200],[1453852800000, 0.001170],[1453939200000, 0.001160],[1454025600000, 0.001180],[1454112000000, 0.001230],[1454198400000, 0.001230]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });