$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1383264000000,1.23827],[1383350400000,null],[1383436800000,1.22589],[1383523200000,1.22589],[1383609600000,1.23063],[1383696000000,1.22649],[1383782400000,1.2295],[1383868800000,1.22634],[1383955200000,1.21476],[1384041600000,1.21476],[1384128000000,1.21476],[1384214400000,1.21703],[1384300800000,1.20492],[1384387200000,1.19236],[1384473600000,1.19672],[1384560000000,1.20291],[1384646400000,1.20291],[1384732800000,1.20291],[1384819200000,1.21182],[1384905600000,1.20431],[1384992000000,1.21219],[1385078400000,1.20513],[1385164800000,1.21475],[1385251200000,1.21475],[1385337600000,1.21475],[1385424000000,1.21484],[1385510400000,1.21744],[1385596800000,1.21967],[1385683200000,1.21657],[1385769600000,1.22136]], 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.238274],[1383264000000, 1.238274],[1383436800000, 1.225887],[1383523200000, 1.225887],[1383609600000, 1.230632],[1383696000000, 1.226490],[1383782400000, 1.229503],[1383868800000, 1.226340],[1383955200000, 1.214755],[1384041600000, 1.214755],[1384128000000, 1.214755],[1384214400000, 1.217027],[1384300800000, 1.204920],[1384387200000, 1.192355],[1384473600000, 1.196723],[1384560000000, 1.202909],[1384646400000, 1.202909],[1384732800000, 1.202909],[1384819200000, 1.211824],[1384905600000, 1.204306],[1384992000000, 1.212190],[1385078400000, 1.205127],[1385164800000, 1.214748],[1385251200000, 1.214748],[1385337600000, 1.214748],[1385424000000, 1.214839],[1385510400000, 1.217436],[1385596800000, 1.219673],[1385683200000, 1.216569],[1385769600000, 1.221361]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });