$(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: [[1335830400000,1.1873],[1335916800000,1.1873],[1336003200000,1.1873],[1336089600000,1.18192],[1336176000000,1.17837],[1336262400000,1.17837],[1336348800000,1.17837],[1336435200000,1.16847],[1336521600000,1.17067],[1336608000000,1.17067],[1336694400000,1.15775],[1336780800000,1.15119],[1336867200000,1.15119],[1336953600000,1.15119],[1337040000000,1.14169],[1337126400000,1.13466],[1337212800000,1.11879],[1337299200000,1.10931],[1337385600000,1.11719],[1337472000000,1.11719],[1337558400000,1.11719],[1337644800000,1.11734],[1337731200000,1.12277],[1337817600000,1.11668],[1337904000000,1.11811],[1337990400000,1.11502],[1338076800000,1.11502],[1338163200000,1.11502],[1338249600000,1.11615],[1338336000000,1.11378],[1338422400000,1.11005]], 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: [[1335830400000, 1.187302],[1335830400000, 1.187302],[1335916800000, 1.187302],[1336003200000, 1.187302],[1336089600000, 1.181918],[1336176000000, 1.178371],[1336262400000, 1.178371],[1336348800000, 1.178371],[1336435200000, 1.168472],[1336521600000, 1.170675],[1336608000000, 1.170675],[1336694400000, 1.157750],[1336780800000, 1.151186],[1336867200000, 1.151186],[1336953600000, 1.151186],[1337040000000, 1.141695],[1337126400000, 1.134664],[1337212800000, 1.118793],[1337299200000, 1.109307],[1337385600000, 1.117191],[1337472000000, 1.117191],[1337558400000, 1.117191],[1337644800000, 1.117343],[1337731200000, 1.122766],[1337817600000, 1.116683],[1337904000000, 1.118113],[1337990400000, 1.115022],[1338076800000, 1.115022],[1338163200000, 1.115022],[1338249600000, 1.116154],[1338336000000, 1.113783],[1338422400000, 1.110052]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });