$(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: [[1238544000000,0.0781212],[1238630400000,0.0779415],[1238716800000,0.0772538],[1238803200000,0.0770976],[1238889600000,0.0770976],[1238976000000,0.0770976],[1239062400000,0.0763999],[1239148800000,0.076855],[1239235200000,0.0769651],[1239321600000,0.0768148],[1239408000000,0.0768148],[1239494400000,0.0768148],[1239580800000,0.0768148],[1239667200000,0.0768148],[1239753600000,0.0771104],[1239840000000,0.0776068],[1239926400000,0.0778615],[1240012800000,0.0775404],[1240099200000,0.0775404],[1240185600000,0.0775404],[1240272000000,0.0775404],[1240358400000,0.0785179],[1240444800000,0.0785904],[1240531200000,0.0783326],[1240617600000,0.0794126],[1240704000000,0.0794126],[1240790400000,0.0794126],[1240876800000,0.0796897],[1240963200000,0.0799795],[1241049600000,0.0794742]], 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: [[1238544000000, 0.078121],[1238544000000, 0.078121],[1238630400000, 0.077941],[1238716800000, 0.077254],[1238803200000, 0.077098],[1238889600000, 0.077098],[1238976000000, 0.077098],[1239062400000, 0.076400],[1239148800000, 0.076855],[1239235200000, 0.076965],[1239321600000, 0.076815],[1239408000000, 0.076815],[1239494400000, 0.076815],[1239580800000, 0.076815],[1239667200000, 0.076815],[1239753600000, 0.077110],[1239840000000, 0.077607],[1239926400000, 0.077862],[1240012800000, 0.077540],[1240099200000, 0.077540],[1240185600000, 0.077540],[1240272000000, 0.077540],[1240358400000, 0.078518],[1240444800000, 0.078590],[1240531200000, 0.078333],[1240617600000, 0.079413],[1240704000000, 0.079413],[1240790400000, 0.079413],[1240876800000, 0.079690],[1240963200000, 0.079979],[1241049600000, 0.079474]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });