$(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: [[1328054400000,0.104613],[1328140800000,0.10496],[1328227200000,0.104974],[1328313600000,0.10483],[1328400000000,0.10483],[1328486400000,0.10483],[1328572800000,0.104233],[1328659200000,0.104072],[1328745600000,0.103866],[1328832000000,0.103449],[1328918400000,0.102879],[1329004800000,0.102879],[1329091200000,0.102879],[1329177600000,0.102925],[1329264000000,0.10228],[1329350400000,0.101801],[1329436800000,0.101353],[1329523200000,0.100697],[1329609600000,0.100697],[1329696000000,0.100697],[1329782400000,0.100467],[1329868800000,0.100218],[1329955200000,0.099482],[1330041600000,0.099538],[1330128000000,0.099193],[1330214400000,0.099193],[1330300800000,0.099193],[1330387200000,0.09918],[1330473600000,0.099136]], 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: [[1328054400000, 0.104613],[1328054400000, 0.104613],[1328140800000, 0.104960],[1328227200000, 0.104974],[1328313600000, 0.104830],[1328400000000, 0.104830],[1328486400000, 0.104830],[1328572800000, 0.104233],[1328659200000, 0.104072],[1328745600000, 0.103866],[1328832000000, 0.103449],[1328918400000, 0.102879],[1329004800000, 0.102879],[1329091200000, 0.102879],[1329177600000, 0.102925],[1329264000000, 0.102280],[1329350400000, 0.101801],[1329436800000, 0.101353],[1329523200000, 0.100697],[1329609600000, 0.100697],[1329696000000, 0.100697],[1329782400000, 0.100467],[1329868800000, 0.100218],[1329955200000, 0.099482],[1330041600000, 0.099538],[1330128000000, 0.099193],[1330214400000, 0.099193],[1330300800000, 0.099193],[1330387200000, 0.099180],[1330473600000, 0.099136]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });