$(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: [[1533168000000,7.38177],[1533254400000,7.32828],[1533340800000,7.36765],[1533427200000,7.36765],[1533513600000,7.36765],[1533600000000,7.32914],[1533686400000,7.37244],[1533772800000,7.33524],[1533859200000,7.354],[1533945600000,7.2738],[1534032000000,7.2738],[1534118400000,7.2738],[1534204800000,7.25727],[1534291200000,7.28482],[1534377600000,7.17955],[1534464000000,7.29252],[1534550400000,7.37081],[1534636800000,7.37081],[1534723200000,7.37081],[1534809600000,7.3494],[1534896000000,7.39803],[1534982400000,7.56446],[1535068800000,7.5385],[1535155200000,7.5385],[1535241600000,7.5385],[1535328000000,7.5385],[1535414400000,7.59515],[1535500800000,7.68859],[1535587200000,7.65296],[1535673600000,7.71054]], 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: [[1533168000000, 7.381767],[1533168000000, 7.381767],[1533254400000, 7.328278],[1533340800000, 7.367648],[1533427200000, 7.367648],[1533513600000, 7.367648],[1533600000000, 7.329140],[1533686400000, 7.372440],[1533772800000, 7.335245],[1533859200000, 7.353995],[1533945600000, 7.273800],[1534032000000, 7.273800],[1534118400000, 7.273800],[1534204800000, 7.257273],[1534291200000, 7.284825],[1534377600000, 7.179555],[1534464000000, 7.292521],[1534550400000, 7.370809],[1534636800000, 7.370809],[1534723200000, 7.370809],[1534809600000, 7.349399],[1534896000000, 7.398027],[1534982400000, 7.564462],[1535068800000, 7.538501],[1535155200000, 7.538501],[1535241600000, 7.538501],[1535328000000, 7.538501],[1535414400000, 7.595153],[1535500800000, 7.688593],[1535587200000, 7.652961],[1535673600000, 7.710535]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });