$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1443657600000,23.8575],[1443744000000,23.5923],[1443830400000,23.6005],[1443916800000,23.6005],[1444003200000,23.6005],[1444089600000,23.8379],[1444176000000,23.8668],[1444262400000,23.963],[1444348800000,23.9702],[1444435200000,24.424],[1444521600000,24.424],[1444608000000,24.424],[1444694400000,24.8133],[1444780800000,24.9463],[1444867200000,24.9463],[1444953600000,24.8119],[1445040000000,24.1942],[1445126400000,24.1942],[1445212800000,24.1942],[1445299200000,24.4992],[1445385600000,25.008],[1445472000000,25.6706],[1445558400000,25.206],[1445644800000,25.0218],[1445731200000,25.0218],[1445817600000,25.0218],[1445904000000,25.2217],[1445990400000,25.289],[1446076800000,25.3697],[1446163200000,25.0341],[1446249600000,25.3322]], 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: [[1443657600000, 23.857501],[1443657600000, 23.857501],[1443744000000, 23.592283],[1443830400000, 23.600546],[1443916800000, 23.600546],[1444003200000, 23.600546],[1444089600000, 23.837893],[1444176000000, 23.866769],[1444262400000, 23.962970],[1444348800000, 23.970222],[1444435200000, 24.423992],[1444521600000, 24.423992],[1444608000000, 24.423992],[1444694400000, 24.813309],[1444780800000, 24.946349],[1444867200000, 24.946349],[1444953600000, 24.811898],[1445040000000, 24.194186],[1445126400000, 24.194186],[1445212800000, 24.194186],[1445299200000, 24.499154],[1445385600000, 25.008007],[1445472000000, 25.670574],[1445558400000, 25.206026],[1445644800000, 25.021772],[1445731200000, 25.021772],[1445817600000, 25.021772],[1445904000000, 25.221682],[1445990400000, 25.289050],[1446076800000, 25.369675],[1446163200000, 25.034056],[1446249600000, 25.332189]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });