$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1559347200000,26.7038],[1559433600000,26.7038],[1559520000000,26.7038],[1559606400000,27.0104],[1559692800000,27.3676],[1559779200000,27.1569],[1559865600000,27.0157],[1559952000000,26.7906],[1560038400000,26.7906],[1560124800000,26.7906],[1560211200000,26.6129],[1560297600000,26.5026],[1560384000000,26.5685],[1560470400000,26.6104],[1560556800000,26.5492],[1560643200000,26.5492],[1560729600000,26.5492],[1560816000000,26.5492],[1560902400000,26.4168],[1560988800000,26.4073],[1561075200000,26.7665],[1561161600000,26.7607],[1561248000000,26.7607],[1561334400000,26.7607],[1561420800000,26.8631],[1561507200000,26.8512],[1561593600000,26.7527],[1561680000000,26.7641],[1561766400000,26.7641],[1561852800000,26.7641]], 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: [[1559347200000, 26.703826],[1559347200000, 26.703826],[1559433600000, 26.703826],[1559520000000, 26.703826],[1559606400000, 27.010376],[1559692800000, 27.367576],[1559779200000, 27.156868],[1559865600000, 27.015709],[1559952000000, 26.790596],[1560038400000, 26.790596],[1560124800000, 26.790596],[1560211200000, 26.612868],[1560297600000, 26.502636],[1560384000000, 26.568489],[1560470400000, 26.610370],[1560556800000, 26.549212],[1560643200000, 26.549212],[1560729600000, 26.549212],[1560816000000, 26.549212],[1560902400000, 26.416764],[1560988800000, 26.407302],[1561075200000, 26.766472],[1561161600000, 26.760670],[1561248000000, 26.760670],[1561334400000, 26.760670],[1561420800000, 26.863133],[1561507200000, 26.851222],[1561593600000, 26.752671],[1561680000000, 26.764065],[1561766400000, 26.764065],[1561852800000, 26.764065]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });