$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1561939200000,0.091967],[1562025600000,0.092108],[1562112000000,0.09162],[1562198400000,0.091218],[1562284800000,0.090462],[1562371200000,0.089518],[1562457600000,0.089518],[1562544000000,0.089518],[1562630400000,0.08844],[1562716800000,0.087755],[1562803200000,0.088481],[1562889600000,0.089364],[1562976000000,0.088981],[1563062400000,0.088981],[1563148800000,0.088981],[1563235200000,0.089073],[1563321600000,0.089082],[1563408000000,0.088785],[1563494400000,0.08943],[1563580800000,0.089071],[1563667200000,0.089071],[1563753600000,0.089071],[1563840000000,0.088502],[1563926400000,0.087977],[1564012800000,0.087261],[1564099200000,0.08711],[1564185600000,0.086797],[1564272000000,0.086797],[1564358400000,0.086797],[1564444800000,0.085806],[1564531200000,0.085439]], 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.091967],[1561939200000, 0.091967],[1562025600000, 0.092108],[1562112000000, 0.091620],[1562198400000, 0.091218],[1562284800000, 0.090462],[1562371200000, 0.089518],[1562457600000, 0.089518],[1562544000000, 0.089518],[1562630400000, 0.088440],[1562716800000, 0.087755],[1562803200000, 0.088481],[1562889600000, 0.089364],[1562976000000, 0.088981],[1563062400000, 0.088981],[1563148800000, 0.088981],[1563235200000, 0.089073],[1563321600000, 0.089082],[1563408000000, 0.088785],[1563494400000, 0.089430],[1563580800000, 0.089071],[1563667200000, 0.089071],[1563753600000, 0.089071],[1563840000000, 0.088502],[1563926400000, 0.087977],[1564012800000, 0.087261],[1564099200000, 0.087110],[1564185600000, 0.086797],[1564272000000, 0.086797],[1564358400000, 0.086797],[1564444800000, 0.085806],[1564531200000, 0.085439]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });