$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1288569600000,0.257],[1288656000000,0.25729],[1288742400000,0.25715],[1288828800000,0.25738],[1288915200000,0.25738],[1289001600000,0.25721],[1289088000000,0.25721],[1289174400000,0.25721],[1289260800000,0.25701],[1289347200000,0.25633],[1289433600000,0.25772],[1289520000000,0.2596],[1289606400000,0.25769],[1289692800000,0.25769],[1289779200000,0.25769],[1289865600000,0.25703],[1289952000000,0.25553],[1290038400000,0.25321],[1290124800000,0.25441],[1290211200000,0.25648],[1290297600000,0.25648],[1290384000000,0.25648],[1290470400000,0.2561],[1290556800000,0.25389],[1290643200000,0.25369],[1290729600000,0.25376],[1290816000000,0.25317],[1290902400000,0.25317],[1290988800000,0.25317],[1291075200000,0.25356]], 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, 0.257000],[1288569600000, 0.257000],[1288656000000, 0.257290],[1288742400000, 0.257150],[1288828800000, 0.257380],[1288915200000, 0.257380],[1289001600000, 0.257210],[1289088000000, 0.257210],[1289174400000, 0.257210],[1289260800000, 0.257010],[1289347200000, 0.256330],[1289433600000, 0.257720],[1289520000000, 0.259600],[1289606400000, 0.257690],[1289692800000, 0.257690],[1289779200000, 0.257690],[1289865600000, 0.257030],[1289952000000, 0.255530],[1290038400000, 0.253210],[1290124800000, 0.254410],[1290211200000, 0.256480],[1290297600000, 0.256480],[1290384000000, 0.256480],[1290470400000, 0.256100],[1290556800000, 0.253890],[1290643200000, 0.253690],[1290729600000, 0.253760],[1290816000000, 0.253170],[1290902400000, 0.253170],[1290988800000, 0.253170],[1291075200000, 0.253560]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });