$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1533168000000,20.0006],[1533254400000,19.8845],[1533340800000,20.0109],[1533427200000,20.0109],[1533513600000,20.0109],[1533600000000,20.0385],[1533686400000,20.0973],[1533772800000,19.9693],[1533859200000,20.1141],[1533945600000,19.9123],[1534032000000,19.9123],[1534118400000,19.9123],[1534204800000,19.8985],[1534291200000,19.9539],[1534377600000,19.8328],[1534464000000,20.107],[1534550400000,20.2803],[1534636800000,20.2803],[1534723200000,20.2803],[1534809600000,20.2352],[1534896000000,20.356],[1534982400000,20.5206],[1535068800000,20.2991],[1535155200000,20.2991],[1535241600000,20.2991],[1535328000000,20.2991],[1535414400000,20.4198],[1535500800000,20.628],[1535587200000,20.5039],[1535673600000,20.6458]], 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, 20.000575],[1533168000000, 20.000575],[1533254400000, 19.884472],[1533340800000, 20.010850],[1533427200000, 20.010850],[1533513600000, 20.010850],[1533600000000, 20.038486],[1533686400000, 20.097331],[1533772800000, 19.969288],[1533859200000, 20.114065],[1533945600000, 19.912348],[1534032000000, 19.912348],[1534118400000, 19.912348],[1534204800000, 19.898452],[1534291200000, 19.953903],[1534377600000, 19.832782],[1534464000000, 20.106983],[1534550400000, 20.280308],[1534636800000, 20.280308],[1534723200000, 20.280308],[1534809600000, 20.235179],[1534896000000, 20.356031],[1534982400000, 20.520610],[1535068800000, 20.299104],[1535155200000, 20.299104],[1535241600000, 20.299104],[1535328000000, 20.299104],[1535414400000, 20.419803],[1535500800000, 20.627967],[1535587200000, 20.503942],[1535673600000, 20.645843]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });