$(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: [[1383264000000,10.9033],[1383350400000,null],[1383436800000,10.7945],[1383523200000,10.7945],[1383609600000,10.7953],[1383696000000,10.7858],[1383782400000,10.8041],[1383868800000,10.6826],[1383955200000,10.7354],[1384041600000,10.7354],[1384128000000,10.7354],[1384214400000,10.7058],[1384300800000,10.7362],[1384387200000,10.7226],[1384473600000,10.7394],[1384560000000,10.7586],[1384646400000,10.7586],[1384732800000,10.7586],[1384819200000,10.8041],[1384905600000,10.7921],[1384992000000,10.8121],[1385078400000,10.7682],[1385164800000,10.8049],[1385251200000,10.8049],[1385337600000,10.8049],[1385424000000,10.8017],[1385510400000,10.8281],[1385596800000,10.8673],[1385683200000,10.8641],[1385769600000,10.8793]], 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: [[1383264000000, 10.903251],[1383264000000, 10.903251],[1383436800000, 10.794547],[1383523200000, 10.794547],[1383609600000, 10.795346],[1383696000000, 10.785754],[1383782400000, 10.804138],[1383868800000, 10.682645],[1383955200000, 10.735398],[1384041600000, 10.735398],[1384128000000, 10.735398],[1384214400000, 10.705824],[1384300800000, 10.736198],[1384387200000, 10.722609],[1384473600000, 10.739395],[1384560000000, 10.758578],[1384646400000, 10.758578],[1384732800000, 10.758578],[1384819200000, 10.804138],[1384905600000, 10.792149],[1384992000000, 10.812131],[1385078400000, 10.768170],[1385164800000, 10.804937],[1385251200000, 10.804937],[1385337600000, 10.804937],[1385424000000, 10.801740],[1385510400000, 10.828117],[1385596800000, 10.867283],[1385683200000, 10.864086],[1385769600000, 10.879272]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });