$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1533168000000,31.5349],[1533254400000,31.3797],[1533340800000,31.395],[1533427200000,31.395],[1533513600000,31.395],[1533600000000,31.3181],[1533686400000,31.3498],[1533772800000,31.2459],[1533859200000,31.4302],[1533945600000,31.2126],[1534032000000,31.2126],[1534118400000,31.2126],[1534204800000,31.1809],[1534291200000,31.3196],[1534377600000,31.076],[1534464000000,31.4614],[1534550400000,31.7792],[1534636800000,31.7792],[1534723200000,31.7792],[1534809600000,31.6296],[1534896000000,31.8714],[1534982400000,32.3918],[1535068800000,32.2512],[1535155200000,32.2512],[1535241600000,32.2512],[1535328000000,32.2512],[1535414400000,32.4389],[1535500800000,32.848],[1535587200000,32.7838],[1535673600000,33.0643]], 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, 31.534907],[1533168000000, 31.534907],[1533254400000, 31.379686],[1533340800000, 31.395022],[1533427200000, 31.395022],[1533513600000, 31.395022],[1533600000000, 31.318150],[1533686400000, 31.349827],[1533772800000, 31.245944],[1533859200000, 31.430238],[1533945600000, 31.212605],[1534032000000, 31.212605],[1534118400000, 31.212605],[1534204800000, 31.180874],[1534291200000, 31.319646],[1534377600000, 31.075987],[1534464000000, 31.461396],[1534550400000, 31.779243],[1534636800000, 31.779243],[1534723200000, 31.779243],[1534809600000, 31.629609],[1534896000000, 31.871438],[1534982400000, 32.391783],[1535068800000, 32.251217],[1535155200000, 32.251217],[1535241600000, 32.251217],[1535328000000, 32.251217],[1535414400000, 32.438900],[1535500800000, 32.847975],[1535587200000, 32.783753],[1535673600000, 33.064318]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });