$(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: [[1249084800000,7.6991],[1249171200000,7.6991],[1249257600000,7.6991],[1249344000000,7.6865],[1249430400000,7.6815],[1249516800000,7.683],[1249603200000,7.698],[1249689600000,7.7038],[1249776000000,7.7038],[1249862400000,7.7038],[1249948800000,7.71],[1250035200000,7.7284],[1250121600000,7.7394],[1250208000000,7.749],[1250294400000,7.7673],[1250380800000,7.7673],[1250467200000,7.7673],[1250553600000,7.8055],[1250640000000,7.8296],[1250726400000,7.848],[1250812800000,7.8844],[1250899200000,7.94],[1250985600000,7.94],[1251072000000,7.94],[1251158400000,7.94],[1251244800000,7.9633],[1251331200000,7.989],[1251417600000,7.989],[1251504000000,7.989],[1251590400000,7.989],[1251676800000,7.989]], 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: [[1249084800000, 7.699100],[1249084800000, 7.699100],[1249171200000, 7.699100],[1249257600000, 7.699100],[1249344000000, 7.686500],[1249430400000, 7.681500],[1249516800000, 7.683000],[1249603200000, 7.698000],[1249689600000, 7.703800],[1249776000000, 7.703800],[1249862400000, 7.703800],[1249948800000, 7.710000],[1250035200000, 7.728400],[1250121600000, 7.739400],[1250208000000, 7.749000],[1250294400000, 7.767300],[1250380800000, 7.767300],[1250467200000, 7.767300],[1250553600000, 7.805500],[1250640000000, 7.829600],[1250726400000, 7.848000],[1250812800000, 7.884400],[1250899200000, 7.940000],[1250985600000, 7.940000],[1251072000000, 7.940000],[1251158400000, 7.940000],[1251244800000, 7.963300],[1251331200000, 7.989000],[1251417600000, 7.989000],[1251504000000, 7.989000],[1251590400000, 7.989000],[1251676800000, 7.989000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });