$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1335830400000,6.4466],[1335916800000,6.4466],[1336003200000,6.4466],[1336089600000,6.42984],[1336176000000,6.43465],[1336262400000,6.43465],[1336348800000,6.43465],[1336435200000,6.40127],[1336521600000,6.40972],[1336608000000,6.40972],[1336694400000,6.39289],[1336780800000,6.38647],[1336867200000,6.38647],[1336953600000,6.38647],[1337040000000,6.35593],[1337126400000,6.36257],[1337212800000,6.30743],[1337299200000,6.30157],[1337385600000,6.27724],[1337472000000,6.27724],[1337558400000,6.27724],[1337644800000,6.28069],[1337731200000,6.29422],[1337817600000,6.25747],[1337904000000,6.26635],[1337990400000,6.25188],[1338076800000,6.25188],[1338163200000,6.25188],[1338249600000,6.26224],[1338336000000,6.25524],[1338422400000,6.23343]], 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, 6.446596],[1335830400000, 6.446596],[1335916800000, 6.446596],[1336003200000, 6.446596],[1336089600000, 6.429843],[1336176000000, 6.434648],[1336262400000, 6.434648],[1336348800000, 6.434648],[1336435200000, 6.401274],[1336521600000, 6.409722],[1336608000000, 6.409722],[1336694400000, 6.392888],[1336780800000, 6.386474],[1336867200000, 6.386474],[1336953600000, 6.386474],[1337040000000, 6.355929],[1337126400000, 6.362573],[1337212800000, 6.307426],[1337299200000, 6.301571],[1337385600000, 6.277238],[1337472000000, 6.277238],[1337558400000, 6.277238],[1337644800000, 6.280689],[1337731200000, 6.294223],[1337817600000, 6.257472],[1337904000000, 6.266348],[1337990400000, 6.251880],[1338076800000, 6.251880],[1338163200000, 6.251880],[1338249600000, 6.262237],[1338336000000, 6.255239],[1338422400000, 6.233428]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });