$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1383264000000,8.84071],[1383350400000,null],[1383436800000,8.76892],[1383523200000,8.76892],[1383609600000,8.76174],[1383696000000,8.77105],[1383782400000,8.76888],[1383868800000,8.68649],[1383955200000,8.72655],[1384041600000,8.72655],[1384128000000,8.72655],[1384214400000,8.68415],[1384300800000,8.70879],[1384387200000,8.70624],[1384473600000,8.70856],[1384560000000,8.71422],[1384646400000,8.71422],[1384732800000,8.71422],[1384819200000,8.76888],[1384905600000,8.75063],[1384992000000,8.77394],[1385078400000,8.74182],[1385164800000,8.78307],[1385251200000,8.78307],[1385337600000,8.78307],[1385424000000,8.77406],[1385510400000,8.79477],[1385596800000,8.8316],[1385683200000,8.81611],[1385769600000,8.84638]], 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, 8.840713],[1383264000000, 8.840713],[1383436800000, 8.768925],[1383523200000, 8.768925],[1383609600000, 8.761745],[1383696000000, 8.771045],[1383782400000, 8.768881],[1383868800000, 8.686489],[1383955200000, 8.726547],[1384041600000, 8.726547],[1384128000000, 8.726547],[1384214400000, 8.684153],[1384300800000, 8.708791],[1384387200000, 8.706244],[1384473600000, 8.708559],[1384560000000, 8.714222],[1384646400000, 8.714222],[1384732800000, 8.714222],[1384819200000, 8.768881],[1384905600000, 8.750627],[1384992000000, 8.773944],[1385078400000, 8.741817],[1385164800000, 8.783074],[1385251200000, 8.783074],[1385337600000, 8.783074],[1385424000000, 8.774056],[1385510400000, 8.794767],[1385596800000, 8.831599],[1385683200000, 8.816105],[1385769600000, 8.846375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });