$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1288569600000,1.47022],[1288656000000,1.47866],[1288742400000,1.48871],[1288828800000,1.4887],[1288915200000,1.51329],[1289001600000,1.49553],[1289088000000,1.49553],[1289174400000,1.49553],[1289260800000,1.47819],[1289347200000,1.47986],[1289433600000,1.46136],[1289520000000,1.45582],[1289606400000,1.45856],[1289692800000,1.45856],[1289779200000,1.45856],[1289865600000,1.45009],[1289952000000,1.44903],[1290038400000,1.43539],[1290124800000,1.45308],[1290211200000,1.45586],[1290297600000,1.45586],[1290384000000,1.45586],[1290470400000,1.45285],[1290556800000,1.43693],[1290643200000,1.42048],[1290729600000,1.41838],[1290816000000,1.40837],[1290902400000,1.40837],[1290988800000,1.40837],[1291075200000,1.3999]], 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, 1.470222],[1288569600000, 1.470222],[1288656000000, 1.478656],[1288742400000, 1.488712],[1288828800000, 1.488695],[1288915200000, 1.513288],[1289001600000, 1.495527],[1289088000000, 1.495527],[1289174400000, 1.495527],[1289260800000, 1.478188],[1289347200000, 1.479860],[1289433600000, 1.461356],[1289520000000, 1.455816],[1289606400000, 1.458562],[1289692800000, 1.458562],[1289779200000, 1.458562],[1289865600000, 1.450087],[1289952000000, 1.449029],[1290038400000, 1.435387],[1290124800000, 1.453082],[1290211200000, 1.455859],[1290297600000, 1.455859],[1290384000000, 1.455859],[1290470400000, 1.452848],[1290556800000, 1.436927],[1290643200000, 1.420485],[1290729600000, 1.418378],[1290816000000, 1.408372],[1290902400000, 1.408372],[1290988800000, 1.408372],[1291075200000, 1.399903]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });