$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1512086400000,0.241787],[1512172800000,0.240494],[1512259200000,0.240494],[1512345600000,0.240494],[1512432000000,0.241139],[1512518400000,0.241296],[1512604800000,0.241736],[1512691200000,0.240539],[1512777600000,0.23887],[1512864000000,0.23887],[1512950400000,0.23887],[1513036800000,0.239483],[1513123200000,0.239453],[1513209600000,0.240628],[1513296000000,0.2434],[1513382400000,0.246327],[1513468800000,0.246327],[1513555200000,0.246327],[1513641600000,0.247829],[1513728000000,0.247449],[1513814400000,0.245984],[1513900800000,0.245444],[1513987200000,0.24656],[1514073600000,0.24656],[1514160000000,0.24656],[1514246400000,0.24656],[1514332800000,0.246504],[1514419200000,0.246805],[1514505600000,0.248593],[1514592000000,0.248593],[1514678400000,0.248593]], 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, 0.241787],[1512086400000, 0.241787],[1512172800000, 0.240494],[1512259200000, 0.240494],[1512345600000, 0.240494],[1512432000000, 0.241139],[1512518400000, 0.241296],[1512604800000, 0.241736],[1512691200000, 0.240539],[1512777600000, 0.238870],[1512864000000, 0.238870],[1512950400000, 0.238870],[1513036800000, 0.239483],[1513123200000, 0.239453],[1513209600000, 0.240628],[1513296000000, 0.243400],[1513382400000, 0.246327],[1513468800000, 0.246327],[1513555200000, 0.246327],[1513641600000, 0.247829],[1513728000000, 0.247449],[1513814400000, 0.245984],[1513900800000, 0.245444],[1513987200000, 0.246560],[1514073600000, 0.246560],[1514160000000, 0.246560],[1514246400000, 0.246560],[1514332800000, 0.246504],[1514419200000, 0.246805],[1514505600000, 0.248593],[1514592000000, 0.248593],[1514678400000, 0.248593]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });