$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1335830400000,10.1627],[1335916800000,10.1627],[1336003200000,10.1627],[1336089600000,10.1653],[1336176000000,10.1653],[1336262400000,10.1653],[1336348800000,10.1653],[1336435200000,10.1637],[1336521600000,10.164],[1336608000000,10.164],[1336694400000,10.1654],[1336780800000,10.1667],[1336867200000,10.1667],[1336953600000,10.1667],[1337040000000,10.1667],[1337126400000,10.1667],[1337212800000,10.1667],[1337299200000,10.1693],[1337385600000,10.1699],[1337472000000,10.1699],[1337558400000,10.1699],[1337644800000,10.1699],[1337731200000,10.1712],[1337817600000,10.1686],[1337904000000,10.1686],[1337990400000,10.1699],[1338076800000,10.1699],[1338163200000,10.1699],[1338249600000,10.1699],[1338336000000,10.1712],[1338422400000,10.1712]], 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, 10.162681],[1335830400000, 10.162681],[1335916800000, 10.162681],[1336003200000, 10.162681],[1336089600000, 10.165267],[1336176000000, 10.165267],[1336262400000, 10.165267],[1336348800000, 10.165267],[1336435200000, 10.163740],[1336521600000, 10.163995],[1336608000000, 10.163995],[1336694400000, 10.165394],[1336780800000, 10.166688],[1336867200000, 10.166688],[1336953600000, 10.166688],[1337040000000, 10.166688],[1337126400000, 10.166688],[1337212800000, 10.166688],[1337299200000, 10.169254],[1337385600000, 10.169891],[1337472000000, 10.169891],[1337558400000, 10.169891],[1337644800000, 10.169891],[1337731200000, 10.171163],[1337817600000, 10.168575],[1337904000000, 10.168575],[1337990400000, 10.169869],[1338076800000, 10.169869],[1338163200000, 10.169869],[1338249600000, 10.169869],[1338336000000, 10.171163],[1338422400000, 10.171163]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });