$(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: [[1541030400000,7.33428],[1541116800000,7.41414],[1541203200000,7.43467],[1541289600000,7.43467],[1541376000000,7.43467],[1541462400000,7.38613],[1541548800000,7.41458],[1541635200000,7.46279],[1541721600000,7.43411],[1541808000000,7.3801],[1541894400000,7.3801],[1541980800000,7.3801],[1542067200000,7.31557],[1542153600000,7.31267],[1542240000000,7.32852],[1542326400000,7.31344],[1542412800000,7.2973],[1542499200000,7.2973],[1542585600000,7.2973],[1542672000000,7.32841],[1542758400000,7.34398],[1542844800000,7.37025],[1542931200000,7.35712],[1543017600000,7.34681],[1543104000000,7.34681],[1543190400000,7.34681],[1543276800000,7.38607],[1543363200000,7.42103],[1543449600000,7.42644],[1543536000000,7.53303]], 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: [[1541030400000, 7.334277],[1541030400000, 7.334277],[1541116800000, 7.414143],[1541203200000, 7.434666],[1541289600000, 7.434666],[1541376000000, 7.434666],[1541462400000, 7.386127],[1541548800000, 7.414578],[1541635200000, 7.462794],[1541721600000, 7.434114],[1541808000000, 7.380097],[1541894400000, 7.380097],[1541980800000, 7.380097],[1542067200000, 7.315574],[1542153600000, 7.312673],[1542240000000, 7.328516],[1542326400000, 7.313441],[1542412800000, 7.297305],[1542499200000, 7.297305],[1542585600000, 7.297305],[1542672000000, 7.328406],[1542758400000, 7.343984],[1542844800000, 7.370248],[1542931200000, 7.357124],[1543017600000, 7.346812],[1543104000000, 7.346812],[1543190400000, 7.346812],[1543276800000, 7.386068],[1543363200000, 7.421035],[1543449600000, 7.426442],[1543536000000, 7.533031]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });