$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1512086400000,3.24338],[1512172800000,3.23199],[1512259200000,3.23199],[1512345600000,3.23199],[1512432000000,3.24093],[1512518400000,3.2285],[1512604800000,3.22721],[1512691200000,3.21048],[1512777600000,3.19052],[1512864000000,3.19052],[1512950400000,3.19052],[1513036800000,3.19582],[1513123200000,3.21929],[1513209600000,3.23048],[1513296000000,3.26342],[1513382400000,3.27626],[1513468800000,3.27626],[1513555200000,3.27626],[1513641600000,3.3013],[1513728000000,3.31306],[1513814400000,3.32915],[1513900800000,3.3086],[1513987200000,3.33547],[1514073600000,3.33547],[1514160000000,3.33547],[1514246400000,3.33547],[1514332800000,3.33471],[1514419200000,3.36734],[1514505600000,3.40221],[1514592000000,3.40221],[1514678400000,3.40221]], 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, 3.243384],[1512086400000, 3.243384],[1512172800000, 3.231986],[1512259200000, 3.231986],[1512345600000, 3.231986],[1512432000000, 3.240927],[1512518400000, 3.228498],[1512604800000, 3.227208],[1512691200000, 3.210478],[1512777600000, 3.190517],[1512864000000, 3.190517],[1512950400000, 3.190517],[1513036800000, 3.195816],[1513123200000, 3.219292],[1513209600000, 3.230479],[1513296000000, 3.263424],[1513382400000, 3.276258],[1513468800000, 3.276258],[1513555200000, 3.276258],[1513641600000, 3.301297],[1513728000000, 3.313062],[1513814400000, 3.329150],[1513900800000, 3.308597],[1513987200000, 3.335470],[1514073600000, 3.335470],[1514160000000, 3.335470],[1514246400000, 3.335470],[1514332800000, 3.334712],[1514419200000, 3.367336],[1514505600000, 3.402209],[1514592000000, 3.402209],[1514678400000, 3.402209]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });