$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1561939200000,3.98766],[1562025600000,3.98432],[1562112000000,3.96373],[1562198400000,3.94052],[1562284800000,3.91288],[1562371200000,3.87901],[1562457600000,3.87901],[1562544000000,3.87901],[1562630400000,3.8473],[1562716800000,3.82676],[1562803200000,3.86349],[1562889600000,3.89932],[1562976000000,3.88204],[1563062400000,3.88204],[1563148800000,3.88204],[1563235200000,3.8848],[1563321600000,3.887],[1563408000000,3.88439],[1563494400000,3.90981],[1563580800000,3.88153],[1563667200000,3.88153],[1563753600000,3.88153],[1563840000000,3.85196],[1563926400000,3.83563],[1564012800000,3.80784],[1564099200000,3.79503],[1564185600000,3.79502],[1564272000000,3.79502],[1564358400000,3.79502],[1564444800000,3.76043],[1564531200000,3.74741]], 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: [[1561939200000, 3.987663],[1561939200000, 3.987663],[1562025600000, 3.984319],[1562112000000, 3.963735],[1562198400000, 3.940520],[1562284800000, 3.912880],[1562371200000, 3.879010],[1562457600000, 3.879010],[1562544000000, 3.879010],[1562630400000, 3.847305],[1562716800000, 3.826758],[1562803200000, 3.863490],[1562889600000, 3.899317],[1562976000000, 3.882044],[1563062400000, 3.882044],[1563148800000, 3.882044],[1563235200000, 3.884804],[1563321600000, 3.886998],[1563408000000, 3.884387],[1563494400000, 3.909806],[1563580800000, 3.881534],[1563667200000, 3.881534],[1563753600000, 3.881534],[1563840000000, 3.851962],[1563926400000, 3.835633],[1564012800000, 3.807842],[1564099200000, 3.795035],[1564185600000, 3.795022],[1564272000000, 3.795022],[1564358400000, 3.795022],[1564444800000, 3.760426],[1564531200000, 3.747406]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });