$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1561939200000,0.242697],[1562025600000,0.24194],[1562112000000,0.241786],[1562198400000,0.241859],[1562284800000,0.240058],[1562371200000,0.237751],[1562457600000,0.237751],[1562544000000,0.237751],[1562630400000,0.235738],[1562716800000,0.234238],[1562803200000,0.235973],[1562889600000,0.238784],[1562976000000,0.237941],[1563062400000,0.237941],[1563148800000,0.237941],[1563235200000,0.238509],[1563321600000,0.239638],[1563408000000,0.238876],[1563494400000,0.241503],[1563580800000,0.239645],[1563667200000,0.239645],[1563753600000,0.239645],[1563840000000,0.237617],[1563926400000,0.237018],[1564012800000,0.23607],[1564099200000,0.235782],[1564185600000,0.234056],[1564272000000,0.234056],[1564358400000,0.234056],[1564444800000,0.232417],[1564531200000,0.231243]], 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, 0.242697],[1561939200000, 0.242697],[1562025600000, 0.241940],[1562112000000, 0.241786],[1562198400000, 0.241859],[1562284800000, 0.240058],[1562371200000, 0.237751],[1562457600000, 0.237751],[1562544000000, 0.237751],[1562630400000, 0.235738],[1562716800000, 0.234238],[1562803200000, 0.235973],[1562889600000, 0.238784],[1562976000000, 0.237941],[1563062400000, 0.237941],[1563148800000, 0.237941],[1563235200000, 0.238509],[1563321600000, 0.239638],[1563408000000, 0.238876],[1563494400000, 0.241503],[1563580800000, 0.239645],[1563667200000, 0.239645],[1563753600000, 0.239645],[1563840000000, 0.237617],[1563926400000, 0.237018],[1564012800000, 0.236070],[1564099200000, 0.235782],[1564185600000, 0.234056],[1564272000000, 0.234056],[1564358400000, 0.234056],[1564444800000, 0.232417],[1564531200000, 0.231243]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });