$(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: [[1288569600000,12.6206],[1288656000000,12.7213],[1288742400000,12.6877],[1288828800000,12.7527],[1288915200000,12.8802],[1289001600000,12.8437],[1289088000000,12.8437],[1289174400000,12.8437],[1289260800000,12.7712],[1289347200000,12.7923],[1289433600000,12.7118],[1289520000000,12.7798],[1289606400000,12.7805],[1289692800000,12.7805],[1289779200000,12.7805],[1289865600000,12.7481],[1289952000000,12.6934],[1290038400000,12.6048],[1290124800000,12.7113],[1290211200000,12.6918],[1290297600000,12.6918],[1290384000000,12.6918],[1290470400000,12.6712],[1290556800000,12.6337],[1290643200000,12.5497],[1290729600000,12.4935],[1290816000000,12.4281],[1290902400000,12.4281],[1290988800000,12.4281],[1291075200000,12.3641]], 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, 12.620622],[1288569600000, 12.620622],[1288656000000, 12.721303],[1288742400000, 12.687660],[1288828800000, 12.752692],[1288915200000, 12.880180],[1289001600000, 12.843719],[1289088000000, 12.843719],[1289174400000, 12.843719],[1289260800000, 12.771150],[1289347200000, 12.792336],[1289433600000, 12.711758],[1289520000000, 12.779836],[1289606400000, 12.780547],[1289692800000, 12.780547],[1289779200000, 12.780547],[1289865600000, 12.748080],[1289952000000, 12.693390],[1290038400000, 12.604763],[1290124800000, 12.711311],[1290211200000, 12.691781],[1290297600000, 12.691781],[1290384000000, 12.691781],[1290470400000, 12.671165],[1290556800000, 12.633669],[1290643200000, 12.549694],[1290729600000, 12.493523],[1290816000000, 12.428087],[1290902400000, 12.428087],[1290988800000, 12.428087],[1291075200000, 12.364093]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });