$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1383264000000,4.01342],[1383350400000,null],[1383436800000,3.96101],[1383523200000,3.96101],[1383609600000,3.95825],[1383696000000,3.9462],[1383782400000,3.93909],[1383868800000,3.94164],[1383955200000,3.95003],[1384041600000,3.95003],[1384128000000,3.95003],[1384214400000,3.92356],[1384300800000,3.9018],[1384387200000,3.89516],[1384473600000,3.90523],[1384560000000,3.92034],[1384646400000,3.92034],[1384732800000,3.92034],[1384819200000,3.9577],[1384905600000,3.97515],[1384992000000,3.97549],[1385078400000,3.95889],[1385164800000,3.96497],[1385251200000,3.96497],[1385337600000,3.96497],[1385424000000,3.9962],[1385510400000,3.96925],[1385596800000,3.95188],[1385683200000,3.96152],[1385769600000,3.9597]], 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, 4.013417],[1383264000000, 4.013417],[1383436800000, 3.961011],[1383523200000, 3.961011],[1383609600000, 3.958254],[1383696000000, 3.946200],[1383782400000, 3.939091],[1383868800000, 3.941644],[1383955200000, 3.950032],[1384041600000, 3.950032],[1384128000000, 3.950032],[1384214400000, 3.923559],[1384300800000, 3.901802],[1384387200000, 3.895165],[1384473600000, 3.905234],[1384560000000, 3.920336],[1384646400000, 3.920336],[1384732800000, 3.920336],[1384819200000, 3.957705],[1384905600000, 3.975155],[1384992000000, 3.975487],[1385078400000, 3.958886],[1385164800000, 3.964969],[1385251200000, 3.964969],[1385337600000, 3.964969],[1385424000000, 3.996204],[1385510400000, 3.969251],[1385596800000, 3.951883],[1385683200000, 3.961525],[1385769600000, 3.959699]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });