$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1099267200000,6.75889],[1099353600000,6.76473],[1099440000000,6.74191],[1099526400000,6.76791],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,6.88599],[1100131200000,6.88599],[1100217600000,6.83982],[1100304000000,6.85614],[1100390400000,6.85614],[1100476800000,6.85614],[1100563200000,6.87418],[1100649600000,6.88267],[1100736000000,6.91186],[1100822400000,6.9108],[1100908800000,6.90867],[1100995200000,6.90867],[1101081600000,6.90867],[1101168000000,6.91557],[1101254400000,6.94529],[1101340800000,6.97553],[1101427200000,7.01108],[1101513600000,7.02435],[1101600000000,7.02435],[1101686400000,7.02435],[1101772800000,7.02912]], 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: [[1099267200000, 6.758890],[1099267200000, 6.758890],[1099353600000, 6.764730],[1099440000000, 6.741910],[1099526400000, 6.767910],[1100044800000, 6.885986],[1100131200000, 6.885986],[1100217600000, 6.839821],[1100304000000, 6.856141],[1100390400000, 6.856141],[1100476800000, 6.856141],[1100563200000, 6.874182],[1100649600000, 6.882672],[1100736000000, 6.911856],[1100822400000, 6.910795],[1100908800000, 6.908672],[1100995200000, 6.908672],[1101081600000, 6.908672],[1101168000000, 6.915570],[1101254400000, 6.945285],[1101340800000, 6.975531],[1101427200000, 7.011082],[1101513600000, 7.024348],[1101600000000, 7.024348],[1101686400000, 7.024348],[1101772800000, 7.029123]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });