$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1099267200000,1.56282],[1099353600000,1.56758],[1099440000000,1.56527],[1099526400000,1.57404],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,1.61647],[1100131200000,1.61647],[1100217600000,1.59555],[1100304000000,1.5988],[1100390400000,1.5988],[1100476800000,1.5988],[1100563200000,1.61135],[1100649600000,1.61618],[1100736000000,1.62338],[1100822400000,1.62454],[1100908800000,1.62764],[1100995200000,1.62764],[1101081600000,1.62764],[1101168000000,1.63554],[1101254400000,1.65258],[1101340800000,1.6547],[1101427200000,1.66242],[1101513600000,1.66718],[1101600000000,1.66718],[1101686400000,1.66718],[1101772800000,1.66875]], 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, 1.562820],[1099267200000, 1.562820],[1099353600000, 1.567580],[1099440000000, 1.565270],[1099526400000, 1.574040],[1100044800000, 1.616466],[1100131200000, 1.616466],[1100217600000, 1.595554],[1100304000000, 1.598802],[1100390400000, 1.598802],[1100476800000, 1.598802],[1100563200000, 1.611350],[1100649600000, 1.616182],[1100736000000, 1.623378],[1100822400000, 1.624540],[1100908800000, 1.627638],[1100995200000, 1.627638],[1101081600000, 1.627638],[1101168000000, 1.635544],[1101254400000, 1.652577],[1101340800000, 1.654695],[1101427200000, 1.662418],[1101513600000, 1.667184],[1101600000000, 1.667184],[1101686400000, 1.667184],[1101772800000, 1.668753]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });