$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1564617600000,27.9006],[1564704000000,27.9787],[1564790400000,28.3622],[1564876800000,28.3622],[1564963200000,28.3622],[1565049600000,28.7769],[1565136000000,28.6279],[1565222400000,28.4804],[1565308800000,28.3368],[1565395200000,28.0967],[1565481600000,28.0967],[1565568000000,28.0967],[1565654400000,28.1624],[1565740800000,28.219],[1565827200000,28.2489],[1565913600000,28.2336],[1566000000000,27.8482],[1566086400000,27.8482],[1566172800000,27.8482],[1566259200000,27.9526],[1566345600000,27.8354],[1566432000000,27.987],[1566518400000,27.7548],[1566604800000,27.7321],[1566691200000,27.7321],[1566777600000,27.7321],[1566864000000,27.7321],[1566950400000,27.9431],[1567036800000,27.9534],[1567123200000,27.9372],[1567209600000,27.749]], 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, 27.900644],[1564617600000, 27.900644],[1564704000000, 27.978706],[1564790400000, 28.362182],[1564876800000, 28.362182],[1564963200000, 28.362182],[1565049600000, 28.776927],[1565136000000, 28.627900],[1565222400000, 28.480355],[1565308800000, 28.336827],[1565395200000, 28.096692],[1565481600000, 28.096692],[1565568000000, 28.096692],[1565654400000, 28.162410],[1565740800000, 28.219021],[1565827200000, 28.248936],[1565913600000, 28.233641],[1566000000000, 27.848218],[1566086400000, 27.848218],[1566172800000, 27.848218],[1566259200000, 27.952562],[1566345600000, 27.835428],[1566432000000, 27.986996],[1566518400000, 27.754821],[1566604800000, 27.732088],[1566691200000, 27.732088],[1566777600000, 27.732088],[1566864000000, 27.732088],[1566950400000, 27.943138],[1567036800000, 27.953383],[1567123200000, 27.937201],[1567209600000, 27.749041]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });