$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1546300800000,4.24707],[1546387200000,4.24707],[1546473600000,4.24707],[1546560000000,4.18082],[1546646400000,4.23105],[1546732800000,4.23105],[1546819200000,4.23105],[1546905600000,4.23105],[1546992000000,4.29385],[1547078400000,4.31469],[1547164800000,4.36804],[1547251200000,4.35002],[1547337600000,4.35002],[1547424000000,4.35002],[1547510400000,4.30536],[1547596800000,4.31118],[1547683200000,4.27358],[1547769600000,4.27964],[1547856000000,4.27383],[1547942400000,4.27383],[1548028800000,4.27383],[1548115200000,4.25336],[1548201600000,4.24178],[1548288000000,4.2175],[1548374400000,4.22088],[1548460800000,4.22714],[1548547200000,4.22714],[1548633600000,4.22714],[1548720000000,4.25049],[1548806400000,4.24933],[1548892800000,4.24952]], 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, 4.247069],[1546300800000, 4.247069],[1546387200000, 4.247069],[1546473600000, 4.247069],[1546560000000, 4.180818],[1546646400000, 4.231046],[1546732800000, 4.231046],[1546819200000, 4.231046],[1546905600000, 4.231046],[1546992000000, 4.293848],[1547078400000, 4.314690],[1547164800000, 4.368042],[1547251200000, 4.350016],[1547337600000, 4.350016],[1547424000000, 4.350016],[1547510400000, 4.305356],[1547596800000, 4.311177],[1547683200000, 4.273584],[1547769600000, 4.279642],[1547856000000, 4.273834],[1547942400000, 4.273834],[1548028800000, 4.273834],[1548115200000, 4.253365],[1548201600000, 4.241778],[1548288000000, 4.217500],[1548374400000, 4.220884],[1548460800000, 4.227136],[1548547200000, 4.227136],[1548633600000, 4.227136],[1548720000000, 4.250487],[1548806400000, 4.249330],[1548892800000, 4.249516]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });