$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1099267200000,9.93727],[1099353600000,9.93727],[1099440000000,9.93727],[1099526400000,9.91869],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,9.99303],[1100131200000,9.99303],[1100217600000,9.97425],[1100304000000,9.99284],[1100390400000,9.99284],[1100476800000,9.99284],[1100563200000,10.0306],[1100649600000,10.0117],[1100736000000,10.0117],[1100822400000,10.0117],[1100908800000,10.0306],[1100995200000,10.0306],[1101081600000,10.0306],[1101168000000,10.0687],[1101254400000,10.0687],[1101340800000,10.0878],[1101427200000,10.1457],[1101513600000,10.2042],[1101600000000,10.2042],[1101686400000,10.2042],[1101772800000,10.1651]], 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, 9.937270],[1099267200000, 9.937270],[1099353600000, 9.937270],[1099440000000, 9.937270],[1099526400000, 9.918690],[1100044800000, 9.993032],[1100131200000, 9.993032],[1100217600000, 9.974248],[1100304000000, 9.992844],[1100390400000, 9.992844],[1100476800000, 9.992844],[1100563200000, 10.030624],[1100649600000, 10.011698],[1100736000000, 10.011698],[1100822400000, 10.011698],[1100908800000, 10.030624],[1100995200000, 10.030624],[1101081600000, 10.030624],[1101168000000, 10.068691],[1101254400000, 10.068691],[1101340800000, 10.087833],[1101427200000, 10.145698],[1101513600000, 10.204231],[1101600000000, 10.204231],[1101686400000, 10.204231],[1101772800000, 10.165134]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });