$(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: [[1491004800000,28.8889],[1491091200000,28.8889],[1491177600000,28.8889],[1491264000000,28.811],[1491350400000,28.8844],[1491436800000,28.9983],[1491523200000,28.9052],[1491609600000,28.6734],[1491696000000,28.6734],[1491782400000,28.6734],[1491868800000,28.49],[1491955200000,28.5504],[1492041600000,28.5016],[1492128000000,28.5567],[1492214400000,28.5012],[1492300800000,28.5012],[1492387200000,28.5012],[1492473600000,28.5012],[1492560000000,28.6758],[1492646400000,28.7291],[1492732800000,28.7501],[1492819200000,28.5987],[1492905600000,28.5987],[1492992000000,28.5987],[1493078400000,28.9356],[1493164800000,29.0047],[1493251200000,28.9633],[1493337600000,28.8906],[1493424000000,29.0311],[1493510400000,29.0311]], 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: [[1491004800000, 28.888948],[1491004800000, 28.888948],[1491091200000, 28.888948],[1491177600000, 28.888948],[1491264000000, 28.810968],[1491350400000, 28.884397],[1491436800000, 28.998254],[1491523200000, 28.905208],[1491609600000, 28.673357],[1491696000000, 28.673357],[1491782400000, 28.673357],[1491868800000, 28.489982],[1491955200000, 28.550442],[1492041600000, 28.501649],[1492128000000, 28.556654],[1492214400000, 28.501218],[1492300800000, 28.501218],[1492387200000, 28.501218],[1492473600000, 28.501218],[1492560000000, 28.675785],[1492646400000, 28.729145],[1492732800000, 28.750111],[1492819200000, 28.598728],[1492905600000, 28.598728],[1492992000000, 28.598728],[1493078400000, 28.935627],[1493164800000, 29.004728],[1493251200000, 28.963263],[1493337600000, 28.890636],[1493424000000, 29.031096],[1493510400000, 29.031096]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });