$(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: [[1422748800000,4.31967],[1422835200000,4.31967],[1422921600000,4.33849],[1423008000000,4.39757],[1423094400000,4.57252],[1423180800000,4.9517],[1423267200000,null],[1423353600000,6.33585],[1423440000000,6.33585],[1423526400000,6.85891],[1423612800000,6.69687],[1423699200000,6.8732],[1423785600000,6.73238],[1423872000000,7.0046],[1423958400000,7.0046],[1424044800000,7.0046],[1424131200000,7.09811],[1424217600000,7.18828],[1424304000000,7.30603],[1424390400000,7.42359],[1424476800000,7.60822],[1424563200000,7.60822],[1424649600000,7.60822],[1424736000000,7.65992],[1424822400000,7.65664],[1424908800000,7.62578],[1424995200000,8.18204],[1425081600000,7.56459]], 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: [[1422748800000, 4.319670],[1422748800000, 4.319670],[1422835200000, 4.319670],[1422921600000, 4.338486],[1423008000000, 4.397567],[1423094400000, 4.572520],[1423180800000, 4.951698],[1423353600000, 6.335852],[1423440000000, 6.335852],[1423526400000, 6.858910],[1423612800000, 6.696872],[1423699200000, 6.873202],[1423785600000, 6.732378],[1423872000000, 7.004605],[1423958400000, 7.004605],[1424044800000, 7.004605],[1424131200000, 7.098109],[1424217600000, 7.188282],[1424304000000, 7.306035],[1424390400000, 7.423586],[1424476800000, 7.608219],[1424563200000, 7.608219],[1424649600000, 7.608219],[1424736000000, 7.659917],[1424822400000, 7.656642],[1424908800000, 7.625785],[1424995200000, 8.182036],[1425081600000, 7.564590]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });