$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1546300800000,31.7141],[1546387200000,31.7141],[1546473600000,31.7141],[1546560000000,31.2203],[1546646400000,31.597],[1546732800000,31.597],[1546819200000,31.597],[1546905600000,31.597],[1546992000000,32.0592],[1547078400000,32.2139],[1547164800000,32.6096],[1547251200000,32.4698],[1547337600000,32.4698],[1547424000000,32.4698],[1547510400000,32.1347],[1547596800000,32.1778],[1547683200000,31.8989],[1547769600000,31.9471],[1547856000000,31.9037],[1547942400000,31.9037],[1548028800000,31.9037],[1548115200000,31.7552],[1548201600000,31.6729],[1548288000000,31.4908],[1548374400000,31.5127],[1548460800000,31.5615],[1548547200000,31.5615],[1548633600000,31.5615],[1548720000000,31.7307],[1548806400000,31.7213],[1548892800000,31.7218]], 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: [[1546300800000, 31.714138],[1546300800000, 31.714138],[1546387200000, 31.714138],[1546473600000, 31.714138],[1546560000000, 31.220257],[1546646400000, 31.597029],[1546732800000, 31.597029],[1546819200000, 31.597029],[1546905600000, 31.597029],[1546992000000, 32.059157],[1547078400000, 32.213903],[1547164800000, 32.609616],[1547251200000, 32.469826],[1547337600000, 32.469826],[1547424000000, 32.469826],[1547510400000, 32.134747],[1547596800000, 32.177763],[1547683200000, 31.898883],[1547769600000, 31.947101],[1547856000000, 31.903745],[1547942400000, 31.903745],[1548028800000, 31.903745],[1548115200000, 31.755196],[1548201600000, 31.672934],[1548288000000, 31.490811],[1548374400000, 31.512701],[1548460800000, 31.561492],[1548547200000, 31.561492],[1548633600000, 31.561492],[1548720000000, 31.730733],[1548806400000, 31.721252],[1548892800000, 31.721790]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });