$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1533168000000,37.8306],[1533254400000,37.8111],[1533340800000,37.8337],[1533427200000,37.8337],[1533513600000,37.8337],[1533600000000,37.8472],[1533686400000,37.7841],[1533772800000,37.6741],[1533859200000,37.8967],[1533945600000,37.9053],[1534032000000,37.9053],[1534118400000,37.9053],[1534204800000,37.9427],[1534291200000,38.1251],[1534377600000,37.9736],[1534464000000,38.35],[1534550400000,38.7236],[1534636800000,38.7236],[1534723200000,38.7236],[1534809600000,38.4767],[1534896000000,38.659],[1534982400000,38.9855],[1535068800000,38.9087],[1535155200000,38.9087],[1535241600000,38.9087],[1535328000000,38.9087],[1535414400000,38.9341],[1535500800000,39.3436],[1535587200000,39.3671],[1535673600000,39.6558]], 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, 37.830648],[1533168000000, 37.830648],[1533254400000, 37.811146],[1533340800000, 37.833737],[1533427200000, 37.833737],[1533513600000, 37.833737],[1533600000000, 37.847219],[1533686400000, 37.784074],[1533772800000, 37.674090],[1533859200000, 37.896672],[1533945600000, 37.905290],[1534032000000, 37.905290],[1534118400000, 37.905290],[1534204800000, 37.942671],[1534291200000, 38.125107],[1534377600000, 37.973597],[1534464000000, 38.349962],[1534550400000, 38.723574],[1534636800000, 38.723574],[1534723200000, 38.723574],[1534809600000, 38.476696],[1534896000000, 38.659025],[1534982400000, 38.985525],[1535068800000, 38.908721],[1535155200000, 38.908721],[1535241600000, 38.908721],[1535328000000, 38.908721],[1535414400000, 38.934120],[1535500800000, 39.343624],[1535587200000, 39.367114],[1535673600000, 39.655819]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });