$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1546300800000,35.1314],[1546387200000,35.1314],[1546473600000,35.1314],[1546560000000,34.5693],[1546646400000,35.1125],[1546732800000,35.1125],[1546819200000,35.1125],[1546905600000,35.1125],[1546992000000,35.7233],[1547078400000,35.8279],[1547164800000,36.0634],[1547251200000,36.0716],[1547337600000,36.0716],[1547424000000,36.0716],[1547510400000,36.0001],[1547596800000,36.1446],[1547683200000,36.0073],[1547769600000,36.1966],[1547856000000,36.2028],[1547942400000,36.2028],[1548028800000,36.2028],[1548115200000,35.9616],[1548201600000,35.992],[1548288000000,36.1079],[1548374400000,36.1861],[1548460800000,36.4536],[1548547200000,36.4536],[1548633600000,36.4536],[1548720000000,36.5191],[1548806400000,36.5726],[1548892800000,36.3195]], 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, 35.131366],[1546300800000, 35.131366],[1546387200000, 35.131366],[1546473600000, 35.131366],[1546560000000, 34.569334],[1546646400000, 35.112491],[1546732800000, 35.112491],[1546819200000, 35.112491],[1546905600000, 35.112491],[1546992000000, 35.723296],[1547078400000, 35.827860],[1547164800000, 36.063408],[1547251200000, 36.071572],[1547337600000, 36.071572],[1547424000000, 36.071572],[1547510400000, 36.000075],[1547596800000, 36.144636],[1547683200000, 36.007318],[1547769600000, 36.196579],[1547856000000, 36.202831],[1547942400000, 36.202831],[1548028800000, 36.202831],[1548115200000, 35.961627],[1548201600000, 35.991971],[1548288000000, 36.107932],[1548374400000, 36.186142],[1548460800000, 36.453559],[1548547200000, 36.453559],[1548633600000, 36.453559],[1548720000000, 36.519120],[1548806400000, 36.572608],[1548892800000, 36.319471]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });