$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1564617600000,19.0292],[1564704000000,19.1609],[1564790400000,19.2966],[1564876800000,19.2966],[1564963200000,19.2966],[1565049600000,19.4768],[1565136000000,19.3628],[1565222400000,19.0887],[1565308800000,19.0512],[1565395200000,18.9894],[1565481600000,18.9894],[1565568000000,18.9894],[1565654400000,19.0197],[1565740800000,18.9529],[1565827200000,18.9947],[1565913600000,19.0241],[1566000000000,18.9058],[1566086400000,18.9058],[1566172800000,18.9058],[1566259200000,18.9779],[1566345600000,18.8561],[1566432000000,18.9601],[1566518400000,18.8526],[1566604800000,18.8129],[1566691200000,18.8129],[1566777600000,18.8129],[1566864000000,18.8129],[1566950400000,19.0232],[1567036800000,18.9463],[1567123200000,19.0062],[1567209600000,18.931]], 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, 19.029221],[1564617600000, 19.029221],[1564704000000, 19.160872],[1564790400000, 19.296627],[1564876800000, 19.296627],[1564963200000, 19.296627],[1565049600000, 19.476770],[1565136000000, 19.362800],[1565222400000, 19.088710],[1565308800000, 19.051248],[1565395200000, 18.989384],[1565481600000, 18.989384],[1565568000000, 18.989384],[1565654400000, 19.019660],[1565740800000, 18.952932],[1565827200000, 18.994712],[1565913600000, 19.024083],[1566000000000, 18.905783],[1566086400000, 18.905783],[1566172800000, 18.905783],[1566259200000, 18.977909],[1566345600000, 18.856136],[1566432000000, 18.960095],[1566518400000, 18.852616],[1566604800000, 18.812895],[1566691200000, 18.812895],[1566777600000, 18.812895],[1566864000000, 18.812895],[1566950400000, 19.023173],[1567036800000, 18.946308],[1567123200000, 19.006192],[1567209600000, 18.930987]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });