$(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: [[1183248000000,0.0412058],[1183334400000,0.0412058],[1183420800000,0.0411733],[1183507200000,0.0412201],[1183593600000,0.0412123],[1183680000000,0.041222],[1183766400000,0.0409738],[1183852800000,0.0409738],[1183939200000,0.0409738],[1184025600000,0.0409124],[1184112000000,0.0411136],[1184198400000,0.0414915],[1184284800000,0.0413501],[1184371200000,0.041261],[1184457600000,0.041261],[1184544000000,0.041261],[1184630400000,0.0414645],[1184716800000,0.0413777],[1184803200000,0.0413452],[1184889600000,0.0413797],[1184976000000,0.0413779],[1185062400000,0.0413779],[1185148800000,0.0413779],[1185235200000,0.0416494],[1185321600000,0.0417753],[1185408000000,0.0419222],[1185494400000,0.0421202],[1185580800000,0.0425225],[1185667200000,0.0425225],[1185753600000,0.0425225]], 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: [[1183248000000, 0.041206],[1183248000000, 0.041206],[1183334400000, 0.041206],[1183420800000, 0.041173],[1183507200000, 0.041220],[1183593600000, 0.041212],[1183680000000, 0.041222],[1183766400000, 0.040974],[1183852800000, 0.040974],[1183939200000, 0.040974],[1184025600000, 0.040912],[1184112000000, 0.041114],[1184198400000, 0.041492],[1184284800000, 0.041350],[1184371200000, 0.041261],[1184457600000, 0.041261],[1184544000000, 0.041261],[1184630400000, 0.041465],[1184716800000, 0.041378],[1184803200000, 0.041345],[1184889600000, 0.041380],[1184976000000, 0.041378],[1185062400000, 0.041378],[1185148800000, 0.041378],[1185235200000, 0.041649],[1185321600000, 0.041775],[1185408000000, 0.041922],[1185494400000, 0.042120],[1185580800000, 0.042522],[1185667200000, 0.042522],[1185753600000, 0.042522]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });