$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1533168000000,3.06179],[1533254400000,3.04648],[1533340800000,3.04236],[1533427200000,3.04236],[1533513600000,3.04236],[1533600000000,3.03942],[1533686400000,3.03645],[1533772800000,3.00795],[1533859200000,3.02577],[1533945600000,2.99378],[1534032000000,2.99378],[1534118400000,2.99378],[1534204800000,2.99548],[1534291200000,3.01969],[1534377600000,2.98713],[1534464000000,3.00597],[1534550400000,3.02847],[1534636800000,3.02847],[1534723200000,3.02847],[1534809600000,3.0147],[1534896000000,3.03197],[1534982400000,3.08273],[1535068800000,3.0662],[1535155200000,3.0662],[1535241600000,3.0662],[1535328000000,3.0662],[1535414400000,3.05753],[1535500800000,3.08047],[1535587200000,3.06611],[1535673600000,3.10638]], 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, 3.061790],[1533168000000, 3.061790],[1533254400000, 3.046483],[1533340800000, 3.042360],[1533427200000, 3.042360],[1533513600000, 3.042360],[1533600000000, 3.039417],[1533686400000, 3.036450],[1533772800000, 3.007946],[1533859200000, 3.025775],[1533945600000, 2.993785],[1534032000000, 2.993785],[1534118400000, 2.993785],[1534204800000, 2.995482],[1534291200000, 3.019692],[1534377600000, 2.987128],[1534464000000, 3.005971],[1534550400000, 3.028469],[1534636800000, 3.028469],[1534723200000, 3.028469],[1534809600000, 3.014698],[1534896000000, 3.031968],[1534982400000, 3.082730],[1535068800000, 3.066201],[1535155200000, 3.066201],[1535241600000, 3.066201],[1535328000000, 3.066201],[1535414400000, 3.057533],[1535500800000, 3.080470],[1535587200000, 3.066109],[1535673600000, 3.106381]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });