$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1533168000000,20.7044],[1533254400000,20.7209],[1533340800000,20.8121],[1533427200000,20.8121],[1533513600000,20.8121],[1533600000000,20.8343],[1533686400000,20.8346],[1533772800000,20.6135],[1533859200000,20.7996],[1533945600000,20.8056],[1534032000000,20.8056],[1534118400000,20.8056],[1534204800000,20.7928],[1534291200000,21.0072],[1534377600000,20.9506],[1534464000000,21.0557],[1534550400000,21.2201],[1534636800000,21.2201],[1534723200000,21.2201],[1534809600000,21.1895],[1534896000000,21.2788],[1534982400000,21.4146],[1535068800000,21.374],[1535155200000,21.374],[1535241600000,21.374],[1535328000000,21.374],[1535414400000,21.3667],[1535500800000,21.7134],[1535587200000,21.7212],[1535673600000,21.8723]], 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.704423],[1533168000000, 20.704423],[1533254400000, 20.720870],[1533340800000, 20.812079],[1533427200000, 20.812079],[1533513600000, 20.812079],[1533600000000, 20.834320],[1533686400000, 20.834603],[1533772800000, 20.613501],[1533859200000, 20.799575],[1533945600000, 20.805629],[1534032000000, 20.805629],[1534118400000, 20.805629],[1534204800000, 20.792794],[1534291200000, 21.007208],[1534377600000, 20.950574],[1534464000000, 21.055679],[1534550400000, 21.220114],[1534636800000, 21.220114],[1534723200000, 21.220114],[1534809600000, 21.189528],[1534896000000, 21.278834],[1534982400000, 21.414639],[1535068800000, 21.373992],[1535155200000, 21.373992],[1535241600000, 21.373992],[1535328000000, 21.373992],[1535414400000, 21.366684],[1535500800000, 21.713363],[1535587200000, 21.721164],[1535673600000, 21.872275]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });