$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1288569600000,1.33817],[1288656000000,1.35365],[1288742400000,1.35322],[1288828800000,1.35218],[1288915200000,1.38452],[1289001600000,1.37296],[1289088000000,1.37296],[1289174400000,1.37296],[1289260800000,1.36273],[1289347200000,1.36579],[1289433600000,1.3487],[1289520000000,1.34116],[1289606400000,1.33683],[1289692800000,1.33683],[1289779200000,1.33683],[1289865600000,1.32863],[1289952000000,1.32265],[1290038400000,1.30737],[1290124800000,1.3272],[1290211200000,1.32366],[1290297600000,1.32366],[1290384000000,1.32366],[1290470400000,1.31992],[1290556800000,1.30532],[1290643200000,1.30019],[1290729600000,1.30116],[1290816000000,1.28385],[1290902400000,1.28385],[1290988800000,1.28385],[1291075200000,1.28379]], 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.338168],[1288569600000, 1.338168],[1288656000000, 1.353654],[1288742400000, 1.353216],[1288828800000, 1.352177],[1288915200000, 1.384524],[1289001600000, 1.372960],[1289088000000, 1.372960],[1289174400000, 1.372960],[1289260800000, 1.362730],[1289347200000, 1.365788],[1289433600000, 1.348696],[1289520000000, 1.341164],[1289606400000, 1.336827],[1289692800000, 1.336827],[1289779200000, 1.336827],[1289865600000, 1.328633],[1289952000000, 1.322649],[1290038400000, 1.307369],[1290124800000, 1.327197],[1290211200000, 1.323660],[1290297600000, 1.323660],[1290384000000, 1.323660],[1290470400000, 1.319919],[1290556800000, 1.305315],[1290643200000, 1.300194],[1290729600000, 1.301156],[1290816000000, 1.283846],[1290902400000, 1.283846],[1290988800000, 1.283846],[1291075200000, 1.283791]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });