$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1533168000000,35.4166],[1533254400000,35.2007],[1533340800000,35.2555],[1533427200000,35.2555],[1533513600000,35.2555],[1533600000000,35.0786],[1533686400000,35.0344],[1533772800000,34.685],[1533859200000,34.9458],[1533945600000,34.8064],[1534032000000,34.8064],[1534118400000,34.8064],[1534204800000,34.9053],[1534291200000,35.0724],[1534377600000,34.8659],[1534464000000,35.1532],[1534550400000,35.4778],[1534636800000,35.4778],[1534723200000,35.4778],[1534809600000,35.349],[1534896000000,35.5153],[1534982400000,36.0197],[1535068800000,35.8833],[1535155200000,35.8833],[1535241600000,35.8833],[1535328000000,35.8833],[1535414400000,35.8976],[1535500800000,36.2241],[1535587200000,36.2251],[1535673600000,36.8372]], 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, 35.416562],[1533168000000, 35.416562],[1533254400000, 35.200725],[1533340800000, 35.255499],[1533427200000, 35.255499],[1533513600000, 35.255499],[1533600000000, 35.078573],[1533686400000, 35.034394],[1533772800000, 34.684958],[1533859200000, 34.945784],[1533945600000, 34.806362],[1534032000000, 34.806362],[1534118400000, 34.806362],[1534204800000, 34.905266],[1534291200000, 35.072392],[1534377600000, 34.865911],[1534464000000, 35.153183],[1534550400000, 35.477804],[1534636800000, 35.477804],[1534723200000, 35.477804],[1534809600000, 35.349034],[1534896000000, 35.515309],[1534982400000, 36.019686],[1535068800000, 35.883327],[1535155200000, 35.883327],[1535241600000, 35.883327],[1535328000000, 35.883327],[1535414400000, 35.897637],[1535500800000, 36.224057],[1535587200000, 36.225141],[1535673600000, 36.837182]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });