$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1291161600000,7.938],[1291248000000,7.938],[1291334400000,7.94],[1291420800000,7.942],[1291507200000,7.942],[1291593600000,7.942],[1291680000000,7.9588],[1291766400000,7.952],[1291852800000,7.9514],[1291939200000,7.9514],[1292025600000,7.9531],[1292112000000,7.9531],[1292198400000,7.9531],[1292284800000,7.9531],[1292371200000,7.9631],[1292457600000,7.9631],[1292544000000,7.9635],[1292630400000,7.9635],[1292716800000,7.9635],[1292803200000,7.9635],[1292889600000,7.9635],[1292976000000,7.9635],[1293062400000,7.9635],[1293148800000,7.9635],[1293235200000,7.9615],[1293321600000,7.9615],[1293408000000,7.9615],[1293494400000,7.9611],[1293580800000,7.9611],[1293667200000,7.9596],[1293753600000,7.9617]], 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: [[1291161600000, 7.938000],[1291161600000, 7.938000],[1291248000000, 7.938000],[1291334400000, 7.940000],[1291420800000, 7.942000],[1291507200000, 7.942000],[1291593600000, 7.942000],[1291680000000, 7.958800],[1291766400000, 7.952000],[1291852800000, 7.951400],[1291939200000, 7.951400],[1292025600000, 7.953100],[1292112000000, 7.953100],[1292198400000, 7.953100],[1292284800000, 7.953100],[1292371200000, 7.963100],[1292457600000, 7.963100],[1292544000000, 7.963500],[1292630400000, 7.963500],[1292716800000, 7.963500],[1292803200000, 7.963500],[1292889600000, 7.963500],[1292976000000, 7.963500],[1293062400000, 7.963500],[1293148800000, 7.963500],[1293235200000, 7.961500],[1293321600000, 7.961500],[1293408000000, 7.961500],[1293494400000, 7.961100],[1293580800000, 7.961100],[1293667200000, 7.959600],[1293753600000, 7.961700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });