$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1533168000000,1.62919],[1533254400000,1.6348],[1533340800000,1.63961],[1533427200000,1.63961],[1533513600000,1.63961],[1533600000000,1.6437],[1533686400000,1.63688],[1533772800000,1.63715],[1533859200000,1.64471],[1533945600000,1.65227],[1534032000000,1.65227],[1534118400000,1.65227],[1534204800000,1.65564],[1534291200000,1.65483],[1534377600000,1.65224],[1534464000000,1.66303],[1534550400000,1.67218],[1534636800000,1.67218],[1534723200000,1.67218],[1534809600000,1.65419],[1534896000000,1.65393],[1534982400000,1.66775],[1535068800000,1.66687],[1535155200000,1.66687],[1535241600000,1.66687],[1535328000000,1.66687],[1535414400000,1.66879],[1535500800000,1.67872],[1535587200000,1.68262],[1535673600000,1.69238]], 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, 1.629191],[1533168000000, 1.629191],[1533254400000, 1.634804],[1533340800000, 1.639607],[1533427200000, 1.639607],[1533513600000, 1.639607],[1533600000000, 1.643699],[1533686400000, 1.636876],[1533772800000, 1.637150],[1533859200000, 1.644710],[1533945600000, 1.652272],[1534032000000, 1.652272],[1534118400000, 1.652272],[1534204800000, 1.655644],[1534291200000, 1.654830],[1534377600000, 1.652242],[1534464000000, 1.663033],[1534550400000, 1.672184],[1534636800000, 1.672184],[1534723200000, 1.672184],[1534809600000, 1.654185],[1534896000000, 1.653932],[1534982400000, 1.667752],[1535068800000, 1.666868],[1535155200000, 1.666868],[1535241600000, 1.666868],[1535328000000, 1.666868],[1535414400000, 1.668786],[1535500800000, 1.678718],[1535587200000, 1.682621],[1535673600000, 1.692376]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });