$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1383264000000,3.1578],[1383350400000,null],[1383436800000,3.12632],[1383523200000,3.12632],[1383609600000,3.12655],[1383696000000,3.12377],[1383782400000,3.12909],[1383868800000,3.09391],[1383955200000,3.10919],[1384041600000,3.10919],[1384128000000,3.10919],[1384214400000,3.10062],[1384300800000,3.10942],[1384387200000,3.10548],[1384473600000,3.11034],[1384560000000,3.1159],[1384646400000,3.1159],[1384732800000,3.1159],[1384819200000,3.12909],[1384905600000,3.12562],[1384992000000,3.13141],[1385078400000,3.11868],[1385164800000,3.12933],[1385251200000,3.12933],[1385337600000,3.12933],[1385424000000,3.1284],[1385510400000,3.13604],[1385596800000,3.14738],[1385683200000,3.14646],[1385769600000,3.15085]], 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, 3.157800],[1383264000000, 3.157800],[1383436800000, 3.126317],[1383523200000, 3.126317],[1383609600000, 3.126548],[1383696000000, 3.123770],[1383782400000, 3.129095],[1383868800000, 3.093908],[1383955200000, 3.109186],[1384041600000, 3.109186],[1384128000000, 3.109186],[1384214400000, 3.100621],[1384300800000, 3.109418],[1384387200000, 3.105482],[1384473600000, 3.110344],[1384560000000, 3.115900],[1384646400000, 3.115900],[1384732800000, 3.115900],[1384819200000, 3.129095],[1384905600000, 3.125622],[1384992000000, 3.131410],[1385078400000, 3.118677],[1385164800000, 3.129326],[1385251200000, 3.129326],[1385337600000, 3.129326],[1385424000000, 3.128400],[1385510400000, 3.136039],[1385596800000, 3.147383],[1385683200000, 3.146457],[1385769600000, 3.150855]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });