$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1533168000000,26.9621],[1533254400000,27.0119],[1533340800000,27.0927],[1533427200000,27.0927],[1533513600000,27.0927],[1533600000000,27.1317],[1533686400000,27.0211],[1533772800000,26.9617],[1533859200000,27.1114],[1533945600000,27.2456],[1534032000000,27.2456],[1534118400000,27.2456],[1534204800000,27.3444],[1534291200000,27.4589],[1534377600000,27.4499],[1534464000000,27.6705],[1534550400000,27.8986],[1534636800000,27.8986],[1534723200000,27.8986],[1534809600000,27.6967],[1534896000000,27.7095],[1534982400000,27.8855],[1535068800000,27.8532],[1535155200000,27.8532],[1535241600000,27.8532],[1535328000000,27.8532],[1535414400000,27.8852],[1535500800000,28.0512],[1535587200000,28.1164],[1535673600000,28.2794]], 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, 26.962130],[1533168000000, 26.962130],[1533254400000, 27.011867],[1533340800000, 27.092701],[1533427200000, 27.092701],[1533513600000, 27.092701],[1533600000000, 27.131725],[1533686400000, 27.021054],[1533772800000, 26.961726],[1533859200000, 27.111393],[1533945600000, 27.245640],[1534032000000, 27.245640],[1534118400000, 27.245640],[1534204800000, 27.344448],[1534291200000, 27.458922],[1534377600000, 27.449860],[1534464000000, 27.670533],[1534550400000, 27.898554],[1534636800000, 27.898554],[1534723200000, 27.898554],[1534809600000, 27.696680],[1534896000000, 27.709475],[1534982400000, 27.885488],[1535068800000, 27.853197],[1535155200000, 27.853197],[1535241600000, 27.853197],[1535328000000, 27.853197],[1535414400000, 27.885240],[1535500800000, 28.051217],[1535587200000, 28.116426],[1535673600000, 28.279437]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });