$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1564617600000,30.4516],[1564704000000,30.6952],[1564790400000,30.9952],[1564876800000,30.9952],[1564963200000,30.9952],[1565049600000,31.3201],[1565136000000,31.1749],[1565222400000,30.8386],[1565308800000,30.7624],[1565395200000,30.2701],[1565481600000,30.2701],[1565568000000,30.2701],[1565654400000,30.408],[1565740800000,30.3986],[1565827200000,30.4824],[1565913600000,30.7345],[1566000000000,30.5913],[1566086400000,30.5913],[1566172800000,30.5913],[1566259200000,30.5216],[1566345600000,30.3804],[1566432000000,30.5718],[1566518400000,30.4496],[1566604800000,30.6591],[1566691200000,30.6591],[1566777600000,30.6591],[1566864000000,30.6591],[1566950400000,30.8986],[1567036800000,30.7779],[1567123200000,30.8593],[1567209600000,30.6399]], 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, 30.451572],[1564617600000, 30.451572],[1564704000000, 30.695234],[1564790400000, 30.995226],[1564876800000, 30.995226],[1564963200000, 30.995226],[1565049600000, 31.320121],[1565136000000, 31.174888],[1565222400000, 30.838581],[1565308800000, 30.762446],[1565395200000, 30.270084],[1565481600000, 30.270084],[1565568000000, 30.270084],[1565654400000, 30.408044],[1565740800000, 30.398600],[1565827200000, 30.482380],[1565913600000, 30.734508],[1566000000000, 30.591344],[1566086400000, 30.591344],[1566172800000, 30.591344],[1566259200000, 30.521562],[1566345600000, 30.380393],[1566432000000, 30.571845],[1566518400000, 30.449612],[1566604800000, 30.659113],[1566691200000, 30.659113],[1566777600000, 30.659113],[1566864000000, 30.659113],[1566950400000, 30.898588],[1567036800000, 30.777868],[1567123200000, 30.859265],[1567209600000, 30.639917]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });