$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1561939200000,1.44269],[1562025600000,1.4492],[1562112000000,1.45052],[1562198400000,1.44537],[1562284800000,1.44126],[1562371200000,1.43474],[1562457600000,1.43474],[1562544000000,1.43474],[1562630400000,1.43109],[1562716800000,1.42703],[1562803200000,1.44047],[1562889600000,1.44955],[1562976000000,1.45109],[1563062400000,1.45109],[1563148800000,1.45109],[1563235200000,1.45195],[1563321600000,1.46204],[1563408000000,1.46503],[1563494400000,1.47759],[1563580800000,1.46922],[1563667200000,1.46922],[1563753600000,1.46922],[1563840000000,1.461],[1563926400000,1.46253],[1564012800000,1.45533],[1564099200000,1.44999],[1564185600000,1.44331],[1564272000000,1.44331],[1564358400000,1.44331],[1564444800000,1.42884],[1564531200000,1.41434]], 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.442692],[1561939200000, 1.442692],[1562025600000, 1.449202],[1562112000000, 1.450523],[1562198400000, 1.445370],[1562284800000, 1.441264],[1562371200000, 1.434738],[1562457600000, 1.434738],[1562544000000, 1.434738],[1562630400000, 1.431088],[1562716800000, 1.427030],[1562803200000, 1.440472],[1562889600000, 1.449550],[1562976000000, 1.451088],[1563062400000, 1.451088],[1563148800000, 1.451088],[1563235200000, 1.451951],[1563321600000, 1.462044],[1563408000000, 1.465025],[1563494400000, 1.477586],[1563580800000, 1.469219],[1563667200000, 1.469219],[1563753600000, 1.469219],[1563840000000, 1.460996],[1563926400000, 1.462527],[1564012800000, 1.455330],[1564099200000, 1.449990],[1564185600000, 1.443315],[1564272000000, 1.443315],[1564358400000, 1.443315],[1564444800000, 1.428839],[1564531200000, 1.414336]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });