$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1561939200000,7.0009],[1562025600000,7.0101],[1562112000000,6.97281],[1562198400000,6.93232],[1562284800000,6.88117],[1562371200000,6.82018],[1562457600000,6.82018],[1562544000000,6.82018],[1562630400000,6.75119],[1562716800000,6.69965],[1562803200000,6.74714],[1562889600000,6.82209],[1562976000000,6.79283],[1563062400000,6.79283],[1563148800000,6.79283],[1563235200000,6.80574],[1563321600000,6.82113],[1563408000000,6.80198],[1563494400000,6.854],[1563580800000,6.80752],[1563667200000,6.80752],[1563753600000,6.80752],[1563840000000,6.76995],[1563926400000,6.73846],[1564012800000,6.68088],[1564099200000,6.67008],[1564185600000,6.64044],[1564272000000,6.64044],[1564358400000,6.64044],[1564444800000,6.55944],[1564531200000,6.52041]], 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, 7.000898],[1561939200000, 7.000898],[1562025600000, 7.010099],[1562112000000, 6.972808],[1562198400000, 6.932318],[1562284800000, 6.881170],[1562371200000, 6.820182],[1562457600000, 6.820182],[1562544000000, 6.820182],[1562630400000, 6.751193],[1562716800000, 6.699654],[1562803200000, 6.747141],[1562889600000, 6.822093],[1562976000000, 6.792826],[1563062400000, 6.792826],[1563148800000, 6.792826],[1563235200000, 6.805744],[1563321600000, 6.821132],[1563408000000, 6.801982],[1563494400000, 6.854001],[1563580800000, 6.807523],[1563667200000, 6.807523],[1563753600000, 6.807523],[1563840000000, 6.769951],[1563926400000, 6.738464],[1564012800000, 6.680884],[1564099200000, 6.670083],[1564185600000, 6.640443],[1564272000000, 6.640443],[1564358400000, 6.640443],[1564444800000, 6.559442],[1564531200000, 6.520410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });