$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1564617600000,3.73633],[1564704000000,3.74748],[1564790400000,3.79885],[1564876800000,3.79885],[1564963200000,3.79885],[1565049600000,3.8545],[1565136000000,3.83526],[1565222400000,3.81616],[1565308800000,3.79692],[1565395200000,3.76475],[1565481600000,3.76475],[1565568000000,3.76475],[1565654400000,3.77345],[1565740800000,3.78104],[1565827200000,3.78632],[1565913600000,3.78518],[1566000000000,3.73351],[1566086400000,3.73351],[1566172800000,3.73351],[1566259200000,3.7479],[1566345600000,3.73329],[1566432000000,3.75342],[1566518400000,3.72258],[1566604800000,3.71948],[1566691200000,3.71948],[1566777600000,3.71948],[1566864000000,3.71948],[1566950400000,3.74683],[1567036800000,3.74821],[1567123200000,3.74644],[1567209600000,3.72161]], 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, 3.736326],[1564617600000, 3.736326],[1564704000000, 3.747483],[1564790400000, 3.798846],[1564876800000, 3.798846],[1564963200000, 3.798846],[1565049600000, 3.854500],[1565136000000, 3.835258],[1565222400000, 3.816156],[1565308800000, 3.796924],[1565395200000, 3.764748],[1565481600000, 3.764748],[1565568000000, 3.764748],[1565654400000, 3.773453],[1565740800000, 3.781038],[1565827200000, 3.786315],[1565913600000, 3.785178],[1566000000000, 3.733506],[1566086400000, 3.733506],[1566172800000, 3.733506],[1566259200000, 3.747897],[1566345600000, 3.733292],[1566432000000, 3.753419],[1566518400000, 3.722581],[1566604800000, 3.719482],[1566691200000, 3.719482],[1566777600000, 3.719482],[1566864000000, 3.719482],[1566950400000, 3.746834],[1567036800000, 3.748208],[1567123200000, 3.746440],[1567209600000, 3.721606]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });