$(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: [[1288569600000,2.75296],[1288656000000,2.77731],[1288742400000,2.80683],[1288828800000,2.82215],[1288915200000,2.89571],[1289001600000,2.84727],[1289088000000,2.84727],[1289174400000,2.84727],[1289260800000,2.81113],[1289347200000,2.81279],[1289433600000,2.80413],[1289520000000,2.75912],[1289606400000,2.76729],[1289692800000,2.76729],[1289779200000,2.76729],[1289865600000,2.75041],[1289952000000,2.74359],[1290038400000,2.6995],[1290124800000,2.75113],[1290211200000,2.75868],[1290297600000,2.75868],[1290384000000,2.75868],[1290470400000,2.75358],[1290556800000,2.70913],[1290643200000,2.66448],[1290729600000,2.65781],[1290816000000,2.60658],[1290902400000,2.60658],[1290988800000,2.60658],[1291075200000,2.57814]], 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: [[1288569600000, 2.752956],[1288569600000, 2.752956],[1288656000000, 2.777308],[1288742400000, 2.806826],[1288828800000, 2.822150],[1288915200000, 2.895710],[1289001600000, 2.847270],[1289088000000, 2.847270],[1289174400000, 2.847270],[1289260800000, 2.811132],[1289347200000, 2.812787],[1289433600000, 2.804127],[1289520000000, 2.759124],[1289606400000, 2.767292],[1289692800000, 2.767292],[1289779200000, 2.767292],[1289865600000, 2.750406],[1289952000000, 2.743593],[1290038400000, 2.699499],[1290124800000, 2.751131],[1290211200000, 2.758676],[1290297600000, 2.758676],[1290384000000, 2.758676],[1290470400000, 2.753579],[1290556800000, 2.709132],[1290643200000, 2.664477],[1290729600000, 2.657805],[1290816000000, 2.606581],[1290902400000, 2.606581],[1290988800000, 2.606581],[1291075200000, 2.578144]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });