$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1564617600000,0.085459],[1564704000000,0.08568],[1564790400000,0.086745],[1564876800000,0.086745],[1564963200000,0.086745],[1565049600000,0.088006],[1565136000000,0.087991],[1565222400000,0.087529],[1565308800000,0.087169],[1565395200000,0.08651],[1565481600000,0.08651],[1565568000000,0.08651],[1565654400000,0.086747],[1565740800000,0.087101],[1565827200000,0.08688],[1565913600000,0.086553],[1566000000000,0.085745],[1566086400000,0.085745],[1566172800000,0.085745],[1566259200000,0.085807],[1566345600000,0.085064],[1566432000000,0.085506],[1566518400000,0.084673],[1566604800000,0.0844],[1566691200000,0.0844],[1566777600000,0.0844],[1566864000000,0.0844],[1566950400000,0.084972],[1567036800000,0.084707],[1567123200000,0.084592],[1567209600000,0.083816]], 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, 0.085459],[1564617600000, 0.085459],[1564704000000, 0.085680],[1564790400000, 0.086745],[1564876800000, 0.086745],[1564963200000, 0.086745],[1565049600000, 0.088006],[1565136000000, 0.087991],[1565222400000, 0.087529],[1565308800000, 0.087169],[1565395200000, 0.086510],[1565481600000, 0.086510],[1565568000000, 0.086510],[1565654400000, 0.086747],[1565740800000, 0.087101],[1565827200000, 0.086880],[1565913600000, 0.086553],[1566000000000, 0.085745],[1566086400000, 0.085745],[1566172800000, 0.085745],[1566259200000, 0.085807],[1566345600000, 0.085064],[1566432000000, 0.085506],[1566518400000, 0.084673],[1566604800000, 0.084400],[1566691200000, 0.084400],[1566777600000, 0.084400],[1566864000000, 0.084400],[1566950400000, 0.084972],[1567036800000, 0.084707],[1567123200000, 0.084592],[1567209600000, 0.083816]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });