$(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: [[1530403200000,7.05256],[1530489600000,7.05256],[1530576000000,6.95606],[1530662400000,6.98579],[1530748800000,7.0288],[1530835200000,7.1016],[1530921600000,7.06418],[1531008000000,7.06418],[1531094400000,7.06418],[1531180800000,7.16273],[1531267200000,7.10489],[1531353600000,7.12216],[1531440000000,7.06615],[1531526400000,7.06858],[1531612800000,7.06858],[1531699200000,7.06858],[1531785600000,7.14073],[1531872000000,7.13781],[1531958400000,7.08554],[1532044800000,7.08786],[1532131200000,7.13933],[1532217600000,7.13933],[1532304000000,7.13933],[1532390400000,7.17325],[1532476800000,7.20681],[1532563200000,7.23947],[1532649600000,7.28955],[1532736000000,7.24876],[1532822400000,7.24876],[1532908800000,7.24876],[1532995200000,7.30853]], 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: [[1530403200000, 7.052560],[1530403200000, 7.052560],[1530489600000, 7.052560],[1530576000000, 6.956059],[1530662400000, 6.985787],[1530748800000, 7.028796],[1530835200000, 7.101597],[1530921600000, 7.064183],[1531008000000, 7.064183],[1531094400000, 7.064183],[1531180800000, 7.162725],[1531267200000, 7.104889],[1531353600000, 7.122156],[1531440000000, 7.066152],[1531526400000, 7.068582],[1531612800000, 7.068582],[1531699200000, 7.068582],[1531785600000, 7.140728],[1531872000000, 7.137811],[1531958400000, 7.085541],[1532044800000, 7.087859],[1532131200000, 7.139329],[1532217600000, 7.139329],[1532304000000, 7.139329],[1532390400000, 7.173252],[1532476800000, 7.206810],[1532563200000, 7.239469],[1532649600000, 7.289552],[1532736000000, 7.248765],[1532822400000, 7.248765],[1532908800000, 7.248765],[1532995200000, 7.308534]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });