$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1564617600000,25.0208],[1564704000000,25.3499],[1564790400000,25.5377],[1564876800000,25.5377],[1564963200000,25.5377],[1565049600000,25.735],[1565136000000,25.5903],[1565222400000,25.4243],[1565308800000,25.3166],[1565395200000,25.0908],[1565481600000,25.0908],[1565568000000,25.0908],[1565654400000,25.1585],[1565740800000,25.1462],[1565827200000,25.2493],[1565913600000,25.3217],[1566000000000,25.1428],[1566086400000,25.1428],[1566172800000,25.1428],[1566259200000,25.1757],[1566345600000,25.1313],[1566432000000,25.2044],[1566518400000,25.0427],[1566604800000,25.0629],[1566691200000,25.0629],[1566777600000,25.0629],[1566864000000,25.0629],[1566950400000,25.1649],[1567036800000,25.2219],[1567123200000,25.2323],[1567209600000,25.1441]], 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: [[1564617600000, 25.020755],[1564617600000, 25.020755],[1564704000000, 25.349919],[1564790400000, 25.537711],[1564876800000, 25.537711],[1564963200000, 25.537711],[1565049600000, 25.735045],[1565136000000, 25.590328],[1565222400000, 25.424348],[1565308800000, 25.316561],[1565395200000, 25.090813],[1565481600000, 25.090813],[1565568000000, 25.090813],[1565654400000, 25.158487],[1565740800000, 25.146160],[1565827200000, 25.249317],[1565913600000, 25.321651],[1566000000000, 25.142848],[1566086400000, 25.142848],[1566172800000, 25.142848],[1566259200000, 25.175684],[1566345600000, 25.131300],[1566432000000, 25.204427],[1566518400000, 25.042697],[1566604800000, 25.062890],[1566691200000, 25.062890],[1566777600000, 25.062890],[1566864000000, 25.062890],[1566950400000, 25.164930],[1567036800000, 25.221856],[1567123200000, 25.232299],[1567209600000, 25.144111]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });