$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1506816000000,31.3786],[1506902400000,31.3786],[1506988800000,31.3032],[1507075200000,31.3854],[1507161600000,31.5995],[1507248000000,31.4682],[1507334400000,31.3044],[1507420800000,31.3044],[1507507200000,31.3044],[1507593600000,31.1876],[1507680000000,31.3637],[1507766400000,31.3889],[1507852800000,31.5781],[1507939200000,31.5781],[1508025600000,31.5781],[1508112000000,31.5781],[1508198400000,31.5781],[1508284800000,31.1429],[1508371200000,31.0473],[1508457600000,31.36],[1508544000000,31.3637],[1508630400000,31.3637],[1508716800000,31.3637],[1508803200000,null],[1508889600000,31.3665],[1508976000000,31.5485],[1509062400000,31.5293],[1509148800000,31.1893],[1509235200000,31.1893],[1509321600000,31.1893],[1509408000000,31.1543]], 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, 31.378572],[1506816000000, 31.378572],[1506902400000, 31.378572],[1506988800000, 31.303169],[1507075200000, 31.385438],[1507161600000, 31.599538],[1507248000000, 31.468189],[1507334400000, 31.304437],[1507420800000, 31.304437],[1507507200000, 31.304437],[1507593600000, 31.187621],[1507680000000, 31.363720],[1507766400000, 31.388908],[1507852800000, 31.578052],[1507939200000, 31.578052],[1508025600000, 31.578052],[1508112000000, 31.578052],[1508198400000, 31.578052],[1508284800000, 31.142921],[1508371200000, 31.047280],[1508457600000, 31.360041],[1508544000000, 31.363674],[1508630400000, 31.363674],[1508716800000, 31.363674],[1508889600000, 31.366534],[1508976000000, 31.548499],[1509062400000, 31.529325],[1509148800000, 31.189344],[1509235200000, 31.189344],[1509321600000, 31.189344],[1509408000000, 31.154288]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });