$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1288569600000,15.4463],[1288656000000,15.5364],[1288742400000,15.641],[1288828800000,15.6385],[1288915200000,15.8956],[1289001600000,15.7067],[1289088000000,15.7067],[1289174400000,15.7067],[1289260800000,15.5332],[1289347200000,15.5548],[1289433600000,15.3561],[1289520000000,15.2987],[1289606400000,15.3305],[1289692800000,15.3305],[1289779200000,15.3305],[1289865600000,15.2413],[1289952000000,15.2314],[1290038400000,15.0822],[1290124800000,15.2722],[1290211200000,15.3024],[1290297600000,15.3024],[1290384000000,15.3024],[1290470400000,15.2722],[1290556800000,15.0968],[1290643200000,14.9273],[1290729600000,14.9093],[1290816000000,14.7943],[1290902400000,14.7943],[1290988800000,14.7943],[1291075200000,14.7059]], 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, 15.446347],[1288569600000, 15.446347],[1288656000000, 15.536408],[1288742400000, 15.641022],[1288828800000, 15.638534],[1288915200000, 15.895598],[1289001600000, 15.706726],[1289088000000, 15.706726],[1289174400000, 15.706726],[1289260800000, 15.533161],[1289347200000, 15.554810],[1289433600000, 15.356083],[1289520000000, 15.298687],[1289606400000, 15.330530],[1289692800000, 15.330530],[1289779200000, 15.330530],[1289865600000, 15.241254],[1289952000000, 15.231352],[1290038400000, 15.082189],[1290124800000, 15.272211],[1290211200000, 15.302426],[1290297600000, 15.302426],[1290384000000, 15.302426],[1290470400000, 15.272211],[1290556800000, 15.096843],[1290643200000, 14.927307],[1290729600000, 14.909266],[1290816000000, 14.794257],[1290902400000, 14.794257],[1290988800000, 14.794257],[1291075200000, 14.705883]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });