$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1561939200000,1.17026],[1562025600000,1.16735],[1562112000000,1.16193],[1562198400000,1.15533],[1562284800000,1.14819],[1562371200000,1.13663],[1562457600000,1.13663],[1562544000000,1.13663],[1562630400000,1.1256],[1562716800000,1.11814],[1562803200000,1.12795],[1562889600000,1.13718],[1562976000000,1.1328],[1563062400000,1.1328],[1563148800000,1.1328],[1563235200000,1.13448],[1563321600000,1.13499],[1563408000000,1.13285],[1563494400000,1.14107],[1563580800000,1.13444],[1563667200000,1.13444],[1563753600000,1.13444],[1563840000000,1.12629],[1563926400000,1.12084],[1564012800000,1.11288],[1564099200000,1.11012],[1564185600000,1.10934],[1564272000000,1.10934],[1564358400000,1.10934],[1564444800000,1.09625],[1564531200000,1.09085]], 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, 1.170257],[1561939200000, 1.170257],[1562025600000, 1.167350],[1562112000000, 1.161925],[1562198400000, 1.155332],[1562284800000, 1.148187],[1562371200000, 1.136626],[1562457600000, 1.136626],[1562544000000, 1.136626],[1562630400000, 1.125596],[1562716800000, 1.118139],[1562803200000, 1.127946],[1562889600000, 1.137175],[1562976000000, 1.132801],[1563062400000, 1.132801],[1563148800000, 1.132801],[1563235200000, 1.134477],[1563321600000, 1.134988],[1563408000000, 1.132849],[1563494400000, 1.141066],[1563580800000, 1.134436],[1563667200000, 1.134436],[1563753600000, 1.134436],[1563840000000, 1.126292],[1563926400000, 1.120844],[1564012800000, 1.112879],[1564099200000, 1.110121],[1564185600000, 1.109340],[1564272000000, 1.109340],[1564358400000, 1.109340],[1564444800000, 1.096254],[1564531200000, 1.090853]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });