$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1335830400000,12.9644],[1335916800000,12.9644],[1336003200000,12.9644],[1336089600000,12.9247],[1336176000000,12.9224],[1336262400000,12.9224],[1336348800000,12.9224],[1336435200000,12.9102],[1336521600000,12.9029],[1336608000000,12.9029],[1336694400000,12.9157],[1336780800000,12.8747],[1336867200000,12.8747],[1336953600000,12.8747],[1337040000000,12.8469],[1337126400000,12.8253],[1337212800000,12.734],[1337299200000,12.6551],[1337385600000,12.6411],[1337472000000,12.6411],[1337558400000,12.6411],[1337644800000,12.6182],[1337731200000,12.6188],[1337817600000,12.578],[1337904000000,12.5303],[1337990400000,12.5295],[1338076800000,12.5295],[1338163200000,12.5295],[1338249600000,12.5526],[1338336000000,12.5206],[1338422400000,12.4614]], 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, 12.964355],[1335830400000, 12.964355],[1335916800000, 12.964355],[1336003200000, 12.964355],[1336089600000, 12.924679],[1336176000000, 12.922393],[1336262400000, 12.922393],[1336348800000, 12.922393],[1336435200000, 12.910180],[1336521600000, 12.902898],[1336608000000, 12.902898],[1336694400000, 12.915738],[1336780800000, 12.874712],[1336867200000, 12.874712],[1336953600000, 12.874712],[1337040000000, 12.846921],[1337126400000, 12.825343],[1337212800000, 12.734016],[1337299200000, 12.655078],[1337385600000, 12.641118],[1337472000000, 12.641118],[1337558400000, 12.641118],[1337644800000, 12.618158],[1337731200000, 12.618801],[1337817600000, 12.577953],[1337904000000, 12.530348],[1337990400000, 12.529540],[1338076800000, 12.529540],[1338163200000, 12.529540],[1338249600000, 12.552650],[1338336000000, 12.520650],[1338422400000, 12.461387]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });