$(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: [[1504224000000,7.1352],[1504310400000,7.23767],[1504396800000,7.23767],[1504483200000,7.23767],[1504569600000,7.27288],[1504656000000,7.28491],[1504742400000,7.30859],[1504828800000,7.3359],[1504915200000,7.39267],[1505001600000,7.39267],[1505088000000,7.39267],[1505174400000,7.35218],[1505260800000,7.2971],[1505347200000,7.29959],[1505433600000,7.25756],[1505520000000,7.33665],[1505606400000,7.33665],[1505692800000,7.33665],[1505779200000,7.29425],[1505865600000,7.31064],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,7.24376],[1506729600000,7.29022]], 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: [[1504224000000, 7.135199],[1504224000000, 7.135199],[1504310400000, 7.237672],[1504396800000, 7.237672],[1504483200000, 7.237672],[1504569600000, 7.272883],[1504656000000, 7.284913],[1504742400000, 7.308589],[1504828800000, 7.335897],[1504915200000, 7.392673],[1505001600000, 7.392673],[1505088000000, 7.392673],[1505174400000, 7.352177],[1505260800000, 7.297098],[1505347200000, 7.299594],[1505433600000, 7.257558],[1505520000000, 7.336646],[1505606400000, 7.336646],[1505692800000, 7.336646],[1505779200000, 7.294253],[1505865600000, 7.310639],[1506643200000, 7.243761],[1506729600000, 7.290222]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });