$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1506816000000,3.99554],[1506902400000,3.99554],[1506988800000,4.00614],[1507075200000,4.02001],[1507161600000,4.04277],[1507248000000,4.02881],[1507334400000,4.01901],[1507420800000,4.01901],[1507507200000,4.01901],[1507593600000,4.00931],[1507680000000,4.04125],[1507766400000,4.02479],[1507852800000,4.04272],[1507939200000,4.04272],[1508025600000,4.04272],[1508112000000,4.04272],[1508198400000,4.04272],[1508284800000,4.00058],[1508371200000,3.98722],[1508457600000,4.0046],[1508544000000,4.00983],[1508630400000,4.00983],[1508716800000,4.00983],[1508803200000,null],[1508889600000,4.02022],[1508976000000,4.02831],[1509062400000,4.04207],[1509148800000,4.03876],[1509235200000,4.03876],[1509321600000,4.03876],[1509408000000,4.03736]], 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, 3.995540],[1506816000000, 3.995540],[1506902400000, 3.995540],[1506988800000, 4.006139],[1507075200000, 4.020012],[1507161600000, 4.042775],[1507248000000, 4.028805],[1507334400000, 4.019006],[1507420800000, 4.019006],[1507507200000, 4.019006],[1507593600000, 4.009310],[1507680000000, 4.041248],[1507766400000, 4.024787],[1507852800000, 4.042715],[1507939200000, 4.042715],[1508025600000, 4.042715],[1508112000000, 4.042715],[1508198400000, 4.042715],[1508284800000, 4.000581],[1508371200000, 3.987219],[1508457600000, 4.004602],[1508544000000, 4.009828],[1508630400000, 4.009828],[1508716800000, 4.009828],[1508889600000, 4.020217],[1508976000000, 4.028308],[1509062400000, 4.042066],[1509148800000, 4.038763],[1509235200000, 4.038763],[1509321600000, 4.038763],[1509408000000, 4.037360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });