$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1288569600000,6.101],[1288656000000,6.12941],[1288742400000,6.14744],[1288828800000,6.14919],[1288915200000,6.17128],[1289001600000,6.15656],[1289088000000,6.15656],[1289174400000,6.15656],[1289260800000,6.14757],[1289347200000,6.16111],[1289433600000,6.14053],[1289520000000,6.14947],[1289606400000,6.12668],[1289692800000,6.12668],[1289779200000,6.12668],[1289865600000,6.0886],[1289952000000,6.10908],[1290038400000,6.0769],[1290124800000,6.1298],[1290211200000,6.117],[1290297600000,6.117],[1290384000000,6.117],[1290470400000,6.11354],[1290556800000,6.04794],[1290643200000,6.05941],[1290729600000,6.0679],[1290816000000,6.01433],[1290902400000,6.01433],[1290988800000,6.01433],[1291075200000,6.01458]], 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, 6.100998],[1288569600000, 6.100998],[1288656000000, 6.129406],[1288742400000, 6.147441],[1288828800000, 6.149187],[1288915200000, 6.171283],[1289001600000, 6.156558],[1289088000000, 6.156558],[1289174400000, 6.156558],[1289260800000, 6.147568],[1289347200000, 6.161112],[1289433600000, 6.140529],[1289520000000, 6.149472],[1289606400000, 6.126683],[1289692800000, 6.126683],[1289779200000, 6.126683],[1289865600000, 6.088603],[1289952000000, 6.109080],[1290038400000, 6.076900],[1290124800000, 6.129798],[1290211200000, 6.117003],[1290297600000, 6.117003],[1290384000000, 6.117003],[1290470400000, 6.113539],[1290556800000, 6.047942],[1290643200000, 6.059414],[1290729600000, 6.067904],[1290816000000, 6.014325],[1290902400000, 6.014325],[1290988800000, 6.014325],[1291075200000, 6.014579]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });