$(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: [[1533168000000,27.2111],[1533254400000,27.1686],[1533340800000,27.2337],[1533427200000,27.2337],[1533513600000,27.2337],[1533600000000,27.2024],[1533686400000,27.1898],[1533772800000,27.0668],[1533859200000,27.3022],[1533945600000,27.4011],[1534032000000,27.4011],[1534118400000,27.4011],[1534204800000,27.5012],[1534291200000,27.7214],[1534377600000,27.5277],[1534464000000,27.8444],[1534550400000,28.029],[1534636800000,28.029],[1534723200000,28.029],[1534809600000,27.8283],[1534896000000,28.0262],[1534982400000,28.4114],[1535068800000,28.3328],[1535155200000,28.3328],[1535241600000,28.3328],[1535328000000,28.3328],[1535414400000,28.3855],[1535500800000,28.7459],[1535587200000,28.7956],[1535673600000,29.1598]], 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, 27.211068],[1533168000000, 27.211068],[1533254400000, 27.168559],[1533340800000, 27.233711],[1533427200000, 27.233711],[1533513600000, 27.233711],[1533600000000, 27.202423],[1533686400000, 27.189789],[1533772800000, 27.066826],[1533859200000, 27.302152],[1533945600000, 27.401111],[1534032000000, 27.401111],[1534118400000, 27.401111],[1534204800000, 27.501212],[1534291200000, 27.721408],[1534377600000, 27.527670],[1534464000000, 27.844407],[1534550400000, 28.028967],[1534636800000, 28.028967],[1534723200000, 28.028967],[1534809600000, 27.828267],[1534896000000, 28.026238],[1534982400000, 28.411352],[1535068800000, 28.332792],[1535155200000, 28.332792],[1535241600000, 28.332792],[1535328000000, 28.332792],[1535414400000, 28.385457],[1535500800000, 28.745931],[1535587200000, 28.795567],[1535673600000, 29.159818]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });