$(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: [[1522540800000,32.4129],[1522627200000,32.4129],[1522713600000,32.2329],[1522800000000,32.4064],[1522886400000,32.2405],[1522972800000,31.9576],[1523059200000,31.8414],[1523145600000,31.8414],[1523232000000,31.8414],[1523318400000,31.8414],[1523404800000,32.1083],[1523491200000,32.1066],[1523577600000,32.023],[1523664000000,32.178],[1523750400000,32.178],[1523836800000,32.178],[1523923200000,32.2724],[1524009600000,32.2306],[1524096000000,32.3919],[1524182400000,32.473],[1524268800000,32.2231],[1524355200000,32.2231],[1524441600000,32.2231],[1524528000000,31.9725],[1524614400000,31.9703],[1524700800000,32.0107],[1524787200000,31.9167],[1524873600000,31.6181],[1524960000000,31.6181],[1525046400000,31.6181]], 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: [[1522540800000, 32.412911],[1522540800000, 32.412911],[1522627200000, 32.412911],[1522713600000, 32.232919],[1522800000000, 32.406432],[1522886400000, 32.240529],[1522972800000, 31.957574],[1523059200000, 31.841393],[1523145600000, 31.841393],[1523232000000, 31.841393],[1523318400000, 31.841393],[1523404800000, 32.108349],[1523491200000, 32.106649],[1523577600000, 32.022979],[1523664000000, 32.178050],[1523750400000, 32.178050],[1523836800000, 32.178050],[1523923200000, 32.272438],[1524009600000, 32.230606],[1524096000000, 32.391860],[1524182400000, 32.472987],[1524268800000, 32.223060],[1524355200000, 32.223060],[1524441600000, 32.223060],[1524528000000, 31.972453],[1524614400000, 31.970293],[1524700800000, 32.010659],[1524787200000, 31.916721],[1524873600000, 31.618147],[1524960000000, 31.618147],[1525046400000, 31.618147]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });