$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1512086400000,38.4369],[1512172800000,38.3798],[1512259200000,38.3798],[1512345600000,38.3798],[1512432000000,38.5437],[1512518400000,38.47],[1512604800000,38.3309],[1512691200000,38.2965],[1512777600000,38.2368],[1512864000000,38.2368],[1512950400000,38.2368],[1513036800000,38.3175],[1513123200000,38.3489],[1513209600000,38.442],[1513296000000,38.778],[1513382400000,39.0776],[1513468800000,39.0776],[1513555200000,39.0776],[1513641600000,39.3865],[1513728000000,39.4266],[1513814400000,39.4277],[1513900800000,39.4418],[1513987200000,39.5708],[1514073600000,39.5708],[1514160000000,39.5708],[1514246400000,39.5708],[1514332800000,39.5618],[1514419200000,39.6288],[1514505600000,39.8751],[1514592000000,39.8751],[1514678400000,39.8751]], 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, 38.436882],[1512086400000, 38.436882],[1512172800000, 38.379822],[1512259200000, 38.379822],[1512345600000, 38.379822],[1512432000000, 38.543696],[1512518400000, 38.469957],[1512604800000, 38.330907],[1512691200000, 38.296504],[1512777600000, 38.236785],[1512864000000, 38.236785],[1512950400000, 38.236785],[1513036800000, 38.317546],[1513123200000, 38.348857],[1513209600000, 38.442004],[1513296000000, 38.778013],[1513382400000, 39.077613],[1513468800000, 39.077613],[1513555200000, 39.077613],[1513641600000, 39.386508],[1513728000000, 39.426598],[1513814400000, 39.427695],[1513900800000, 39.441753],[1513987200000, 39.570754],[1514073600000, 39.570754],[1514160000000, 39.570754],[1514246400000, 39.570754],[1514332800000, 39.561759],[1514419200000, 39.628768],[1514505600000, 39.875068],[1514592000000, 39.875068],[1514678400000, 39.875068]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });