$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1099267200000,5.3065],[1099353600000,5.3065],[1099440000000,5.3065],[1099526400000,5.3065],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,5.3063],[1100131200000,5.3063],[1100217600000,5.3063],[1100304000000,5.3062],[1100390400000,5.3062],[1100476800000,5.3062],[1100563200000,5.3062],[1100649600000,5.3062],[1100736000000,5.3062],[1100822400000,5.3062],[1100908800000,5.3062],[1100995200000,5.3062],[1101081600000,5.3062],[1101168000000,5.3062],[1101254400000,5.3062],[1101340800000,5.3062],[1101427200000,5.3062],[1101513600000,5.3062],[1101600000000,5.3062],[1101686400000,5.3062],[1101772800000,5.3062]], 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, 5.306500],[1099267200000, 5.306500],[1099353600000, 5.306500],[1099440000000, 5.306500],[1099526400000, 5.306500],[1100044800000, 5.306300],[1100131200000, 5.306300],[1100217600000, 5.306300],[1100304000000, 5.306200],[1100390400000, 5.306200],[1100476800000, 5.306200],[1100563200000, 5.306200],[1100649600000, 5.306200],[1100736000000, 5.306200],[1100822400000, 5.306200],[1100908800000, 5.306200],[1100995200000, 5.306200],[1101081600000, 5.306200],[1101168000000, 5.306200],[1101254400000, 5.306200],[1101340800000, 5.306200],[1101427200000, 5.306200],[1101513600000, 5.306200],[1101600000000, 5.306200],[1101686400000, 5.306200],[1101772800000, 5.306200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });