$(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: [[1367366400000,1.22318],[1367452800000,1.22318],[1367539200000,1.22318],[1367625600000,1.22318],[1367712000000,1.22318],[1367798400000,1.22318],[1367884800000,1.22318],[1367971200000,1.22837],[1368057600000,1.22934],[1368144000000,1.22934],[1368230400000,1.22934],[1368316800000,1.22934],[1368403200000,1.22934],[1368489600000,1.20993],[1368576000000,1.20145],[1368662400000,1.19616],[1368748800000,1.19951],[1368835200000,1.19715],[1368921600000,1.19715],[1369008000000,1.19715],[1369094400000,1.19801],[1369180800000,1.20138],[1369267200000,1.2088],[1369353600000,1.19863],[1369440000000,1.20285],[1369526400000,1.20285],[1369612800000,1.20285],[1369699200000,1.20308],[1369785600000,1.20425],[1369872000000,1.20264],[1369958400000,1.20697]], 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: [[1367366400000, 1.223185],[1367366400000, 1.223185],[1367452800000, 1.223185],[1367539200000, 1.223185],[1367625600000, 1.223185],[1367712000000, 1.223185],[1367798400000, 1.223185],[1367884800000, 1.223185],[1367971200000, 1.228373],[1368057600000, 1.229340],[1368144000000, 1.229340],[1368230400000, 1.229340],[1368316800000, 1.229340],[1368403200000, 1.229340],[1368489600000, 1.209927],[1368576000000, 1.201454],[1368662400000, 1.196160],[1368748800000, 1.199513],[1368835200000, 1.197155],[1368921600000, 1.197155],[1369008000000, 1.197155],[1369094400000, 1.198009],[1369180800000, 1.201378],[1369267200000, 1.208804],[1369353600000, 1.198629],[1369440000000, 1.202854],[1369526400000, 1.202854],[1369612800000, 1.202854],[1369699200000, 1.203078],[1369785600000, 1.204246],[1369872000000, 1.202636],[1369958400000, 1.206969]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });