$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1546300800000,27.6883],[1546387200000,27.6883],[1546473600000,27.6883],[1546560000000,27.5117],[1546646400000,27.7094],[1546732800000,27.7094],[1546819200000,27.7094],[1546905600000,27.7094],[1546992000000,28.0237],[1547078400000,28.1221],[1547164800000,28.2701],[1547251200000,28.1538],[1547337600000,28.1538],[1547424000000,28.1538],[1547510400000,28.0237],[1547596800000,28.1668],[1547683200000,28.0085],[1547769600000,28.0336],[1547856000000,27.9808],[1547942400000,27.9808],[1548028800000,27.9808],[1548115200000,27.9486],[1548201600000,27.8958],[1548288000000,27.7037],[1548374400000,27.7865],[1548460800000,27.8173],[1548547200000,27.8173],[1548633600000,27.8173],[1548720000000,27.7901],[1548806400000,27.7721],[1548892800000,27.7555]], 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, 27.688264],[1546300800000, 27.688264],[1546387200000, 27.688264],[1546473600000, 27.688264],[1546560000000, 27.511682],[1546646400000, 27.709400],[1546732800000, 27.709400],[1546819200000, 27.709400],[1546905600000, 27.709400],[1546992000000, 28.023739],[1547078400000, 28.122133],[1547164800000, 28.270148],[1547251200000, 28.153842],[1547337600000, 28.153842],[1547424000000, 28.153842],[1547510400000, 28.023674],[1547596800000, 28.166809],[1547683200000, 28.008502],[1547769600000, 28.033609],[1547856000000, 27.980832],[1547942400000, 27.980832],[1548028800000, 27.980832],[1548115200000, 27.948597],[1548201600000, 27.895838],[1548288000000, 27.703713],[1548374400000, 27.786528],[1548460800000, 27.817285],[1548547200000, 27.817285],[1548633600000, 27.817285],[1548720000000, 27.790097],[1548806400000, 27.772064],[1548892800000, 27.755525]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });