$(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: [[1456790400000,3.16468],[1456876800000,3.14437],[1456963200000,3.11675],[1457049600000,3.05228],[1457136000000,3.11397],[1457222400000,3.11397],[1457308800000,3.11397],[1457395200000,3.11397],[1457481600000,3.11397],[1457568000000,3.09194],[1457654400000,2.99977],[1457740800000,3.07898],[1457827200000,3.09981],[1457913600000,3.09981],[1458000000000,3.17689],[1458086400000,3.23163],[1458172800000,3.22014],[1458259200000,3.24962],[1458345600000,3.19051],[1458432000000,3.19051],[1458518400000,3.19051],[1458604800000,3.23993],[1458691200000,3.17024],[1458777600000,3.14807],[1458864000000,3.15916],[1458950400000,3.13728],[1459036800000,3.13728],[1459123200000,3.13728],[1459209600000,3.16253],[1459296000000,3.19301],[1459382400000,3.21244]], 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: [[1456790400000, 3.164679],[1456790400000, 3.164679],[1456876800000, 3.144374],[1456963200000, 3.116749],[1457049600000, 3.052282],[1457136000000, 3.113970],[1457222400000, 3.113970],[1457308800000, 3.113970],[1457395200000, 3.113970],[1457481600000, 3.113970],[1457568000000, 3.091943],[1457654400000, 2.999771],[1457740800000, 3.078985],[1457827200000, 3.099811],[1457913600000, 3.099811],[1458000000000, 3.176892],[1458086400000, 3.231626],[1458172800000, 3.220141],[1458259200000, 3.249620],[1458345600000, 3.190515],[1458432000000, 3.190515],[1458518400000, 3.190515],[1458604800000, 3.239927],[1458691200000, 3.170244],[1458777600000, 3.148072],[1458864000000, 3.159164],[1458950400000, 3.137283],[1459036800000, 3.137283],[1459123200000, 3.137283],[1459209600000, 3.162532],[1459296000000, 3.193010],[1459382400000, 3.212435]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });