$(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: [[1525132800000,7.49938],[1525219200000,7.49938],[1525305600000,7.3452],[1525392000000,7.36812],[1525478400000,7.40077],[1525564800000,7.40077],[1525651200000,7.40077],[1525737600000,7.35609],[1525824000000,7.27285],[1525910400000,7.27285],[1525996800000,7.33008],[1526083200000,7.34189],[1526169600000,7.34189],[1526256000000,7.34189],[1526342400000,7.3598],[1526428800000,7.27089],[1526515200000,7.20085],[1526601600000,7.20667],[1526688000000,7.17227],[1526774400000,7.17227],[1526860800000,7.17227],[1526947200000,7.11014],[1527033600000,7.1738],[1527120000000,7.08695],[1527206400000,7.11554],[1527292800000,7.08506],[1527379200000,7.08506],[1527465600000,7.08506],[1527552000000,7.08506],[1527638400000,6.99725],[1527724800000,7.04791]], 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: [[1525132800000, 7.499383],[1525132800000, 7.499383],[1525219200000, 7.499383],[1525305600000, 7.345197],[1525392000000, 7.368117],[1525478400000, 7.400766],[1525564800000, 7.400766],[1525651200000, 7.400766],[1525737600000, 7.356087],[1525824000000, 7.272854],[1525910400000, 7.272854],[1525996800000, 7.330077],[1526083200000, 7.341890],[1526169600000, 7.341890],[1526256000000, 7.341890],[1526342400000, 7.359799],[1526428800000, 7.270888],[1526515200000, 7.200846],[1526601600000, 7.206670],[1526688000000, 7.172274],[1526774400000, 7.172274],[1526860800000, 7.172274],[1526947200000, 7.110140],[1527033600000, 7.173797],[1527120000000, 7.086952],[1527206400000, 7.115544],[1527292800000, 7.085061],[1527379200000, 7.085061],[1527465600000, 7.085061],[1527552000000, 7.085061],[1527638400000, 6.997253],[1527724800000, 7.047915]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });