$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1288569600000,0.0979912],[1288656000000,0.0985009],[1288742400000,0.0980777],[1288828800000,0.0976394],[1288915200000,0.0979688],[1289001600000,0.0974308],[1289088000000,0.0974308],[1289174400000,0.0974308],[1289260800000,0.0976052],[1289347200000,0.0981098],[1289433600000,0.0959823],[1289520000000,0.0962171],[1289606400000,0.0965664],[1289692800000,0.0965664],[1289779200000,0.0965664],[1289865600000,0.095394],[1289952000000,0.0954163],[1290038400000,0.0951183],[1290124800000,0.0952566],[1290211200000,0.0951355],[1290297600000,0.0951355],[1290384000000,0.0951355],[1290470400000,0.0950476],[1290556800000,0.0952242],[1290643200000,0.0951602],[1290729600000,0.0949721],[1290816000000,0.0946448],[1290902400000,0.0946448],[1290988800000,0.0946448],[1291075200000,0.0942409]], 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.097991],[1288569600000, 0.097991],[1288656000000, 0.098501],[1288742400000, 0.098078],[1288828800000, 0.097639],[1288915200000, 0.097969],[1289001600000, 0.097431],[1289088000000, 0.097431],[1289174400000, 0.097431],[1289260800000, 0.097605],[1289347200000, 0.098110],[1289433600000, 0.095982],[1289520000000, 0.096217],[1289606400000, 0.096566],[1289692800000, 0.096566],[1289779200000, 0.096566],[1289865600000, 0.095394],[1289952000000, 0.095416],[1290038400000, 0.095118],[1290124800000, 0.095257],[1290211200000, 0.095135],[1290297600000, 0.095135],[1290384000000, 0.095135],[1290470400000, 0.095048],[1290556800000, 0.095224],[1290643200000, 0.095160],[1290729600000, 0.094972],[1290816000000, 0.094645],[1290902400000, 0.094645],[1290988800000, 0.094645],[1291075200000, 0.094241]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });