$(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: [[1506816000000,0.236249],[1506902400000,0.236249],[1506988800000,0.23625],[1507075200000,0.23639],[1507161600000,0.238541],[1507248000000,0.238305],[1507334400000,0.236742],[1507420800000,0.236742],[1507507200000,0.236742],[1507593600000,0.235627],[1507680000000,0.236618],[1507766400000,0.236505],[1507852800000,0.237215],[1507939200000,0.237215],[1508025600000,0.237215],[1508112000000,0.237215],[1508198400000,0.237215],[1508284800000,0.236039],[1508371200000,0.234107],[1508457600000,0.235471],[1508544000000,0.234495],[1508630400000,0.234495],[1508716800000,0.234495],[1508803200000,null],[1508889600000,0.234166],[1508976000000,0.234718],[1509062400000,0.235733],[1509148800000,0.235356],[1509235200000,0.235356],[1509321600000,0.235356],[1509408000000,0.236322]], 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: [[1506816000000, 0.236249],[1506816000000, 0.236249],[1506902400000, 0.236249],[1506988800000, 0.236250],[1507075200000, 0.236390],[1507161600000, 0.238541],[1507248000000, 0.238305],[1507334400000, 0.236742],[1507420800000, 0.236742],[1507507200000, 0.236742],[1507593600000, 0.235627],[1507680000000, 0.236618],[1507766400000, 0.236505],[1507852800000, 0.237215],[1507939200000, 0.237215],[1508025600000, 0.237215],[1508112000000, 0.237215],[1508198400000, 0.237215],[1508284800000, 0.236039],[1508371200000, 0.234107],[1508457600000, 0.235471],[1508544000000, 0.234495],[1508630400000, 0.234495],[1508716800000, 0.234495],[1508889600000, 0.234166],[1508976000000, 0.234718],[1509062400000, 0.235733],[1509148800000, 0.235356],[1509235200000, 0.235356],[1509321600000, 0.235356],[1509408000000, 0.236322]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });