$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1383264000000,15.5096],[1383350400000,null],[1383436800000,15.3615],[1383523200000,15.3615],[1383609600000,15.3605],[1383696000000,15.3534],[1383782400000,15.3796],[1383868800000,15.2066],[1383955200000,15.2817],[1384041600000,15.2817],[1384128000000,15.2817],[1384214400000,15.2331],[1384300800000,15.2763],[1384387200000,15.2548],[1384473600000,15.2765],[1384560000000,15.3147],[1384646400000,15.3147],[1384732800000,15.3147],[1384819200000,15.3752],[1384905600000,15.3559],[1384992000000,15.3822],[1385078400000,15.324],[1385164800000,15.3741],[1385251200000,15.3741],[1385337600000,15.3741],[1385424000000,15.3652],[1385510400000,15.4027],[1385596800000,15.4606],[1385683200000,15.4561],[1385769600000,15.4755]], 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, 15.509604],[1383264000000, 15.509604],[1383436800000, 15.361529],[1383523200000, 15.361529],[1383609600000, 15.360481],[1383696000000, 15.353387],[1383782400000, 15.379556],[1383868800000, 15.206611],[1383955200000, 15.281706],[1384041600000, 15.281706],[1384128000000, 15.281706],[1384214400000, 15.233102],[1384300800000, 15.276320],[1384387200000, 15.254815],[1384473600000, 15.276522],[1384560000000, 15.314702],[1384646400000, 15.314702],[1384732800000, 15.314702],[1384819200000, 15.375179],[1384905600000, 15.355931],[1384992000000, 15.382175],[1385078400000, 15.323993],[1385164800000, 15.374128],[1385251200000, 15.374128],[1385337600000, 15.374128],[1385424000000, 15.365207],[1385510400000, 15.402727],[1385596800000, 15.460638],[1385683200000, 15.456090],[1385769600000, 15.475494]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });