$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1561939200000,0.41522],[1562025600000,0.41562],[1562112000000,0.41405],[1562198400000,0.41019],[1562284800000,0.40805],[1562371200000,0.40437],[1562457600000,0.40437],[1562544000000,0.40437],[1562630400000,0.40085],[1562716800000,0.39973],[1562803200000,0.40284],[1562889600000,0.40959],[1562976000000,0.40877],[1563062400000,0.40877],[1563148800000,0.40877],[1563235200000,0.4097],[1563321600000,0.41176],[1563408000000,0.41087],[1563494400000,0.4143],[1563580800000,0.41064],[1563667200000,0.41064],[1563753600000,0.41064],[1563840000000,0.40718],[1563926400000,0.40599],[1564012800000,0.40427],[1564099200000,0.40355],[1564185600000,0.40299],[1564272000000,0.40299],[1564358400000,0.40299],[1564444800000,0.39755],[1564531200000,0.3958]], 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.415220],[1561939200000, 0.415220],[1562025600000, 0.415620],[1562112000000, 0.414050],[1562198400000, 0.410190],[1562284800000, 0.408050],[1562371200000, 0.404370],[1562457600000, 0.404370],[1562544000000, 0.404370],[1562630400000, 0.400850],[1562716800000, 0.399730],[1562803200000, 0.402840],[1562889600000, 0.409590],[1562976000000, 0.408770],[1563062400000, 0.408770],[1563148800000, 0.408770],[1563235200000, 0.409700],[1563321600000, 0.411760],[1563408000000, 0.410870],[1563494400000, 0.414300],[1563580800000, 0.410640],[1563667200000, 0.410640],[1563753600000, 0.410640],[1563840000000, 0.407180],[1563926400000, 0.405990],[1564012800000, 0.404270],[1564099200000, 0.403550],[1564185600000, 0.402990],[1564272000000, 0.402990],[1564358400000, 0.402990],[1564444800000, 0.397550],[1564531200000, 0.395800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });