$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1533168000000,3.96571],[1533254400000,3.94624],[1533340800000,3.96427],[1533427200000,3.96427],[1533513600000,3.96427],[1533600000000,3.96101],[1533686400000,3.95976],[1533772800000,3.94365],[1533859200000,3.97584],[1533945600000,3.97775],[1534032000000,3.97775],[1534118400000,3.97775],[1534204800000,3.97022],[1534291200000,3.99037],[1534377600000,3.96894],[1534464000000,4.01314],[1534550400000,4.05244],[1534636800000,4.05244],[1534723200000,4.05244],[1534809600000,4.03691],[1534896000000,4.04727],[1534982400000,4.07598],[1535068800000,4.04947],[1535155200000,4.04947],[1535241600000,4.04947],[1535328000000,4.04947],[1535414400000,4.08571],[1535500800000,4.12451],[1535587200000,4.11722],[1535673600000,4.13889]], 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, 3.965707],[1533168000000, 3.965707],[1533254400000, 3.946237],[1533340800000, 3.964268],[1533427200000, 3.964268],[1533513600000, 3.964268],[1533600000000, 3.961014],[1533686400000, 3.959761],[1533772800000, 3.943651],[1533859200000, 3.975844],[1533945600000, 3.977750],[1534032000000, 3.977750],[1534118400000, 3.977750],[1534204800000, 3.970215],[1534291200000, 3.990374],[1534377600000, 3.968937],[1534464000000, 4.013138],[1534550400000, 4.052441],[1534636800000, 4.052441],[1534723200000, 4.052441],[1534809600000, 4.036912],[1534896000000, 4.047270],[1534982400000, 4.075976],[1535068800000, 4.049473],[1535155200000, 4.049473],[1535241600000, 4.049473],[1535328000000, 4.049473],[1535414400000, 4.085710],[1535500800000, 4.124506],[1535587200000, 4.117217],[1535673600000, 4.138886]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });