$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1506816000000,7.29022],[1506902400000,7.29022],[1506988800000,7.25753],[1507075200000,7.28167],[1507161600000,7.35369],[1507248000000,7.31818],[1507334400000,7.27351],[1507420800000,7.27351],[1507507200000,7.27351],[1507593600000,7.23997],[1507680000000,7.30561],[1507766400000,7.32513],[1507852800000,7.39014],[1507939200000,7.39014],[1508025600000,7.39014],[1508112000000,7.39014],[1508198400000,7.39014],[1508284800000,7.36274],[1508371200000,7.34378],[1508457600000,7.39763],[1508544000000,7.40355],[1508630400000,7.40355],[1508716800000,7.40355],[1508803200000,null],[1508889600000,7.39724],[1508976000000,7.44859],[1509062400000,7.44494],[1509148800000,7.34524],[1509235200000,7.34524],[1509321600000,7.34524],[1509408000000,7.34217]], 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, 7.290222],[1506816000000, 7.290222],[1506902400000, 7.290222],[1506988800000, 7.257528],[1507075200000, 7.281666],[1507161600000, 7.353689],[1507248000000, 7.318183],[1507334400000, 7.273505],[1507420800000, 7.273505],[1507507200000, 7.273505],[1507593600000, 7.239971],[1507680000000, 7.305611],[1507766400000, 7.325128],[1507852800000, 7.390136],[1507939200000, 7.390136],[1508025600000, 7.390136],[1508112000000, 7.390136],[1508198400000, 7.390136],[1508284800000, 7.362741],[1508371200000, 7.343776],[1508457600000, 7.397632],[1508544000000, 7.403554],[1508630400000, 7.403554],[1508716800000, 7.403554],[1508889600000, 7.397244],[1508976000000, 7.448589],[1509062400000, 7.444941],[1509148800000, 7.345237],[1509235200000, 7.345237],[1509321600000, 7.345237],[1509408000000, 7.342168]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });