$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1020211200000,0.17076],[1020297600000,0.17076],[1020384000000,0.17076],[1020470400000,0.17076],[1020556800000,0.17076],[1020643200000,0.17076],[1020729600000,0.17076],[1020816000000,0.17067],[1020902400000,0.17067],[1020988800000,0.17067],[1021075200000,0.17067],[1021161600000,0.17067],[1021248000000,0.17048],[1021334400000,0.17049],[1021420800000,0.17049],[1021507200000,0.17047],[1021593600000,0.17048],[1021680000000,0.17048],[1021766400000,0.17048],[1021852800000,0.17048],[1021939200000,0.17048],[1022025600000,0.17048],[1022112000000,0.17044],[1022198400000,0.17033],[1022284800000,0.17033],[1022371200000,0.17033],[1022457600000,0.17033],[1022544000000,0.17033],[1022630400000,0.17023],[1022716800000,0.17023],[1022803200000,0.17024]], 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: [[1020211200000, 0.170760],[1020211200000, 0.170760],[1020297600000, 0.170760],[1020384000000, 0.170760],[1020470400000, 0.170760],[1020556800000, 0.170760],[1020643200000, 0.170760],[1020729600000, 0.170760],[1020816000000, 0.170670],[1020902400000, 0.170670],[1020988800000, 0.170670],[1021075200000, 0.170670],[1021161600000, 0.170670],[1021248000000, 0.170480],[1021334400000, 0.170490],[1021420800000, 0.170490],[1021507200000, 0.170470],[1021593600000, 0.170480],[1021680000000, 0.170480],[1021766400000, 0.170480],[1021852800000, 0.170480],[1021939200000, 0.170480],[1022025600000, 0.170480],[1022112000000, 0.170440],[1022198400000, 0.170330],[1022284800000, 0.170330],[1022371200000, 0.170330],[1022457600000, 0.170330],[1022544000000, 0.170330],[1022630400000, 0.170230],[1022716800000, 0.170230],[1022803200000, 0.170240]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });