$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1383264000000,1.34542],[1383350400000,null],[1383436800000,1.3416],[1383523200000,1.3416],[1383609600000,1.34664],[1383696000000,1.33951],[1383782400000,1.34205],[1383868800000,1.33266],[1383955200000,1.31312],[1384041600000,1.31312],[1384128000000,1.31312],[1384214400000,1.30455],[1384300800000,1.2936],[1384387200000,1.28599],[1384473600000,1.28909],[1384560000000,1.30352],[1384646400000,1.30352],[1384732800000,1.30352],[1384819200000,1.30666],[1384905600000,1.31156],[1384992000000,1.31407],[1385078400000,1.31215],[1385164800000,1.31663],[1385251200000,1.31663],[1385337600000,1.31663],[1385424000000,1.30527],[1385510400000,1.30956],[1385596800000,1.31677],[1385683200000,1.31272],[1385769600000,1.3076]], 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, 1.345416],[1383264000000, 1.345416],[1383436800000, 1.341604],[1383523200000, 1.341604],[1383609600000, 1.346641],[1383696000000, 1.339512],[1383782400000, 1.342046],[1383868800000, 1.332665],[1383955200000, 1.313118],[1384041600000, 1.313118],[1384128000000, 1.313118],[1384214400000, 1.304554],[1384300800000, 1.293596],[1384387200000, 1.285993],[1384473600000, 1.289088],[1384560000000, 1.303517],[1384646400000, 1.303517],[1384732800000, 1.303517],[1384819200000, 1.306662],[1384905600000, 1.311557],[1384992000000, 1.314066],[1385078400000, 1.312151],[1385164800000, 1.316632],[1385251200000, 1.316632],[1385337600000, 1.316632],[1385424000000, 1.305267],[1385510400000, 1.309562],[1385596800000, 1.316768],[1385683200000, 1.312722],[1385769600000, 1.307605]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });