$(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: [[1099267200000,3.18981],[1099353600000,3.18295],[1099440000000,3.18225],[1099526400000,3.1819],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,3.20726],[1100131200000,3.20726],[1100217600000,3.20037],[1100304000000,3.20845],[1100390400000,3.20845],[1100476800000,3.20845],[1100563200000,3.21449],[1100649600000,3.2153],[1100736000000,3.22111],[1100822400000,3.21657],[1100908800000,3.22083],[1100995200000,3.22083],[1101081600000,3.22083],[1101168000000,3.22615],[1101254400000,3.23082],[1101340800000,3.23271],[1101427200000,3.23464],[1101513600000,3.233],[1101600000000,3.233],[1101686400000,3.233],[1101772800000,3.24072]], 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, 3.189810],[1099267200000, 3.189810],[1099353600000, 3.182950],[1099440000000, 3.182250],[1099526400000, 3.181900],[1100044800000, 3.207259],[1100131200000, 3.207259],[1100217600000, 3.200365],[1100304000000, 3.208452],[1100390400000, 3.208452],[1100476800000, 3.208452],[1100563200000, 3.214488],[1100649600000, 3.215300],[1100736000000, 3.221109],[1100822400000, 3.216567],[1100908800000, 3.220826],[1100995200000, 3.220826],[1101081600000, 3.220826],[1101168000000, 3.226148],[1101254400000, 3.230816],[1101340800000, 3.232705],[1101427200000, 3.234640],[1101513600000, 3.233004],[1101600000000, 3.233004],[1101686400000, 3.233004],[1101772800000, 3.240721]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });