$(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: [[1267401600000,7.99],[1267488000000,7.99],[1267574400000,7.985],[1267660800000,7.984],[1267747200000,7.9842],[1267833600000,7.9838],[1267920000000,7.9838],[1268006400000,7.9838],[1268092800000,7.9838],[1268179200000,7.984],[1268265600000,7.9824],[1268352000000,7.9804],[1268438400000,7.978],[1268524800000,7.978],[1268611200000,7.978],[1268697600000,7.9767],[1268784000000,7.9767],[1268870400000,7.976],[1268956800000,7.976],[1269043200000,7.9602],[1269129600000,7.9602],[1269216000000,7.9602],[1269302400000,7.9544],[1269388800000,7.9501],[1269475200000,7.935],[1269561600000,7.931],[1269648000000,7.93],[1269734400000,7.93],[1269820800000,7.93],[1269907200000,7.925],[1269993600000,7.925]], 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: [[1267401600000, 7.990000],[1267401600000, 7.990000],[1267488000000, 7.990000],[1267574400000, 7.985000],[1267660800000, 7.984000],[1267747200000, 7.984200],[1267833600000, 7.983800],[1267920000000, 7.983800],[1268006400000, 7.983800],[1268092800000, 7.983800],[1268179200000, 7.984000],[1268265600000, 7.982400],[1268352000000, 7.980400],[1268438400000, 7.978000],[1268524800000, 7.978000],[1268611200000, 7.978000],[1268697600000, 7.976700],[1268784000000, 7.976700],[1268870400000, 7.976000],[1268956800000, 7.976000],[1269043200000, 7.960200],[1269129600000, 7.960200],[1269216000000, 7.960200],[1269302400000, 7.954400],[1269388800000, 7.950100],[1269475200000, 7.935000],[1269561600000, 7.931000],[1269648000000, 7.930000],[1269734400000, 7.930000],[1269820800000, 7.930000],[1269907200000, 7.925000],[1269993600000, 7.925000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });