$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1512086400000,27.1558],[1512172800000,27.0543],[1512259200000,27.0543],[1512345600000,27.0543],[1512432000000,27.2153],[1512518400000,27.1644],[1512604800000,27.1092],[1512691200000,27.1194],[1512777600000,27.1093],[1512864000000,27.1093],[1512950400000,27.1093],[1513036800000,27.1357],[1513123200000,27.1771],[1513209600000,27.2675],[1513296000000,27.41],[1513382400000,27.6351],[1513468800000,27.6351],[1513555200000,27.6351],[1513641600000,27.8736],[1513728000000,27.8843],[1513814400000,27.8609],[1513900800000,27.8559],[1513987200000,27.9509],[1514073600000,27.9509],[1514160000000,27.9509],[1514246400000,27.9509],[1514332800000,27.9446],[1514419200000,27.9485],[1514505600000,28.0672],[1514592000000,28.0672],[1514678400000,28.0672]], 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: [[1512086400000, 27.155849],[1512086400000, 27.155849],[1512172800000, 27.054320],[1512259200000, 27.054320],[1512345600000, 27.054320],[1512432000000, 27.215318],[1512518400000, 27.164406],[1512604800000, 27.109151],[1512691200000, 27.119363],[1512777600000, 27.109345],[1512864000000, 27.109345],[1512950400000, 27.109345],[1513036800000, 27.135720],[1513123200000, 27.177106],[1513209600000, 27.267490],[1513296000000, 27.410006],[1513382400000, 27.635063],[1513468800000, 27.635063],[1513555200000, 27.635063],[1513641600000, 27.873635],[1513728000000, 27.884304],[1513814400000, 27.860871],[1513900800000, 27.855935],[1513987200000, 27.950921],[1514073600000, 27.950921],[1514160000000, 27.950921],[1514246400000, 27.950921],[1514332800000, 27.944567],[1514419200000, 27.948466],[1514505600000, 28.067223],[1514592000000, 28.067223],[1514678400000, 28.067223]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });