$(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: [[1446336000000,25.3322],[1446422400000,25.3322],[1446508800000,25.3904],[1446595200000,25.2661],[1446681600000,25.2395],[1446768000000,24.9499],[1446854400000,24.6058],[1446940800000,24.6058],[1447027200000,24.6058],[1447113600000,24.5207],[1447200000000,24.3797],[1447286400000,24.3863],[1447372800000,24.581],[1447459200000,24.8216],[1447545600000,24.8216],[1447632000000,24.8216],[1447718400000,24.8849],[1447804800000,25.3637],[1447891200000,25.5062],[1447977600000,25.4769],[1448064000000,25.6347],[1448150400000,25.6347],[1448236800000,25.6347],[1448323200000,25.582],[1448409600000,25.5083],[1448496000000,25.1647],[1448582400000,25.0415],[1448668800000,25.27],[1448755200000,25.27],[1448841600000,25.27]], 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: [[1446336000000, 25.332189],[1446336000000, 25.332189],[1446422400000, 25.332189],[1446508800000, 25.390387],[1446595200000, 25.266104],[1446681600000, 25.239538],[1446768000000, 24.949859],[1446854400000, 24.605837],[1446940800000, 24.605837],[1447027200000, 24.605837],[1447113600000, 24.520717],[1447200000000, 24.379666],[1447286400000, 24.386302],[1447372800000, 24.581021],[1447459200000, 24.821553],[1447545600000, 24.821553],[1447632000000, 24.821553],[1447718400000, 24.884893],[1447804800000, 25.363740],[1447891200000, 25.506230],[1447977600000, 25.476895],[1448064000000, 25.634715],[1448150400000, 25.634715],[1448236800000, 25.634715],[1448323200000, 25.582033],[1448409600000, 25.508337],[1448496000000, 25.164664],[1448582400000, 25.041457],[1448668800000, 25.269966],[1448755200000, 25.269966],[1448841600000, 25.269966]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });