$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1383264000000,6.45277],[1383350400000,null],[1383436800000,6.43183],[1383523200000,6.43183],[1383609600000,6.42886],[1383696000000,6.44118],[1383782400000,6.43448],[1383868800000,6.42836],[1383955200000,6.43648],[1384041600000,6.43648],[1384128000000,6.43648],[1384214400000,6.40301],[1384300800000,6.3963],[1384387200000,6.40271],[1384473600000,6.40584],[1384560000000,6.40735],[1384646400000,6.40735],[1384732800000,6.40735],[1384819200000,6.415],[1384905600000,6.42887],[1384992000000,6.42585],[1385078400000,6.40276],[1385164800000,6.38741],[1385251200000,6.38741],[1385337600000,6.38741],[1385424000000,6.3825],[1385510400000,6.38262],[1385596800000,6.37153],[1385683200000,6.36555],[1385769600000,6.36885]], 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, 6.452773],[1383264000000, 6.452773],[1383436800000, 6.431834],[1383523200000, 6.431834],[1383609600000, 6.428862],[1383696000000, 6.441179],[1383782400000, 6.434482],[1383868800000, 6.428358],[1383955200000, 6.436476],[1384041600000, 6.436476],[1384128000000, 6.436476],[1384214400000, 6.403005],[1384300800000, 6.396305],[1384387200000, 6.402705],[1384473600000, 6.405842],[1384560000000, 6.407348],[1384646400000, 6.407348],[1384732800000, 6.407348],[1384819200000, 6.414997],[1384905600000, 6.428873],[1384992000000, 6.425848],[1385078400000, 6.402765],[1385164800000, 6.387407],[1385251200000, 6.387407],[1385337600000, 6.387407],[1385424000000, 6.382498],[1385510400000, 6.382621],[1385596800000, 6.371531],[1385683200000, 6.365551],[1385769600000, 6.368852]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });