$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1512086400000,4.10541],[1512172800000,4.0934],[1512259200000,4.0934],[1512345600000,4.0934],[1512432000000,4.11182],[1512518400000,4.10711],[1512604800000,4.09816],[1512691200000,4.09712],[1512777600000,4.09523],[1512864000000,4.09523],[1512950400000,4.09523],[1513036800000,4.10013],[1513123200000,4.10614],[1513209600000,4.11897],[1513296000000,4.14767],[1513382400000,4.18163],[1513468800000,4.18163],[1513555200000,4.18163],[1513641600000,4.21202],[1513728000000,4.22293],[1513814400000,4.23494],[1513900800000,4.23018],[1513987200000,4.25046],[1514073600000,4.25046],[1514160000000,4.25046],[1514246400000,4.25046],[1514332800000,4.2495],[1514419200000,4.26351],[1514505600000,4.29423],[1514592000000,4.29423],[1514678400000,4.29423]], 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, 4.105409],[1512086400000, 4.105409],[1512172800000, 4.093399],[1512259200000, 4.093399],[1512345600000, 4.093399],[1512432000000, 4.111824],[1512518400000, 4.107110],[1512604800000, 4.098157],[1512691200000, 4.097122],[1512777600000, 4.095227],[1512864000000, 4.095227],[1512950400000, 4.095227],[1513036800000, 4.100129],[1513123200000, 4.106142],[1513209600000, 4.118973],[1513296000000, 4.147673],[1513382400000, 4.181635],[1513468800000, 4.181635],[1513555200000, 4.181635],[1513641600000, 4.212024],[1513728000000, 4.222935],[1513814400000, 4.234941],[1513900800000, 4.230184],[1513987200000, 4.250462],[1514073600000, 4.250462],[1514160000000, 4.250462],[1514246400000, 4.250462],[1514332800000, 4.249496],[1514419200000, 4.263508],[1514505600000, 4.294230],[1514592000000, 4.294230],[1514678400000, 4.294230]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });