$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1512086400000,1.26229],[1512172800000,1.25976],[1512259200000,1.25976],[1512345600000,1.25976],[1512432000000,1.26349],[1512518400000,1.2545],[1512604800000,1.24961],[1512691200000,1.24801],[1512777600000,1.24562],[1512864000000,1.24562],[1512950400000,1.24562],[1513036800000,1.25031],[1513123200000,1.24928],[1513209600000,1.24761],[1513296000000,1.26356],[1513382400000,1.27058],[1513468800000,1.27058],[1513555200000,1.27058],[1513641600000,1.28001],[1513728000000,1.28469],[1513814400000,1.28539],[1513900800000,1.28463],[1513987200000,1.28661],[1514073600000,1.28661],[1514160000000,1.28661],[1514246400000,1.28661],[1514332800000,1.28632],[1514419200000,1.28656],[1514505600000,1.30612],[1514592000000,1.30612],[1514678400000,1.30612]], 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, 1.262287],[1512086400000, 1.262287],[1512172800000, 1.259758],[1512259200000, 1.259758],[1512345600000, 1.259758],[1512432000000, 1.263488],[1512518400000, 1.254499],[1512604800000, 1.249605],[1512691200000, 1.248014],[1512777600000, 1.245619],[1512864000000, 1.245619],[1512950400000, 1.245619],[1513036800000, 1.250314],[1513123200000, 1.249280],[1513209600000, 1.247607],[1513296000000, 1.263559],[1513382400000, 1.270580],[1513468800000, 1.270580],[1513555200000, 1.270580],[1513641600000, 1.280006],[1513728000000, 1.284686],[1513814400000, 1.285394],[1513900800000, 1.284634],[1513987200000, 1.286611],[1514073600000, 1.286611],[1514160000000, 1.286611],[1514246400000, 1.286611],[1514332800000, 1.286318],[1514419200000, 1.286560],[1514505600000, 1.306119],[1514592000000, 1.306119],[1514678400000, 1.306119]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });