$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1335830400000,2.5294],[1335916800000,2.5294],[1336003200000,2.5294],[1336089600000,2.51871],[1336176000000,2.50725],[1336262400000,2.50725],[1336348800000,2.50725],[1336435200000,2.48145],[1336521600000,2.48313],[1336608000000,2.48313],[1336694400000,2.44865],[1336780800000,2.43726],[1336867200000,2.43726],[1336953600000,2.43726],[1337040000000,2.38901],[1337126400000,2.37399],[1337212800000,2.33969],[1337299200000,2.33055],[1337385600000,2.34455],[1337472000000,2.34455],[1337558400000,2.34455],[1337644800000,2.35153],[1337731200000,2.35699],[1337817600000,2.31685],[1337904000000,2.30807],[1337990400000,2.30356],[1338076800000,2.30356],[1338163200000,2.30356],[1338249600000,2.31446],[1338336000000,2.29512],[1338422400000,2.26587]], 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, 2.529396],[1335830400000, 2.529396],[1335916800000, 2.529396],[1336003200000, 2.529396],[1336089600000, 2.518712],[1336176000000, 2.507249],[1336262400000, 2.507249],[1336348800000, 2.507249],[1336435200000, 2.481451],[1336521600000, 2.483127],[1336608000000, 2.483127],[1336694400000, 2.448652],[1336780800000, 2.437257],[1336867200000, 2.437257],[1336953600000, 2.437257],[1337040000000, 2.389014],[1337126400000, 2.373987],[1337212800000, 2.339692],[1337299200000, 2.330555],[1337385600000, 2.344554],[1337472000000, 2.344554],[1337558400000, 2.344554],[1337644800000, 2.351526],[1337731200000, 2.356990],[1337817600000, 2.316855],[1337904000000, 2.308070],[1337990400000, 2.303559],[1338076800000, 2.303559],[1338163200000, 2.303559],[1338249600000, 2.314462],[1338336000000, 2.295118],[1338422400000, 2.265875]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });