$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1546300800000,1.23028],[1546387200000,1.23028],[1546473600000,1.23028],[1546560000000,1.2156],[1546646400000,1.23171],[1546732800000,1.23171],[1546819200000,1.23171],[1546905600000,1.23171],[1546992000000,1.25026],[1547078400000,1.25693],[1547164800000,1.27252],[1547251200000,1.26805],[1547337600000,1.26805],[1547424000000,1.26805],[1547510400000,1.25718],[1547596800000,1.25832],[1547683200000,1.24781],[1547769600000,1.25101],[1547856000000,1.24721],[1547942400000,1.24721],[1548028800000,1.24721],[1548115200000,1.24078],[1548201600000,1.23664],[1548288000000,1.22566],[1548374400000,1.22641],[1548460800000,1.22822],[1548547200000,1.22822],[1548633600000,1.22822],[1548720000000,1.23341],[1548806400000,1.23204],[1548892800000,1.22943]], 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, 1.230279],[1546300800000, 1.230279],[1546387200000, 1.230279],[1546473600000, 1.230279],[1546560000000, 1.215600],[1546646400000, 1.231709],[1546732800000, 1.231709],[1546819200000, 1.231709],[1546905600000, 1.231709],[1546992000000, 1.250260],[1547078400000, 1.256932],[1547164800000, 1.272521],[1547251200000, 1.268055],[1547337600000, 1.268055],[1547424000000, 1.268055],[1547510400000, 1.257179],[1547596800000, 1.258320],[1547683200000, 1.247805],[1547769600000, 1.251012],[1547856000000, 1.247214],[1547942400000, 1.247214],[1548028800000, 1.247214],[1548115200000, 1.240777],[1548201600000, 1.236644],[1548288000000, 1.225657],[1548374400000, 1.226414],[1548460800000, 1.228217],[1548547200000, 1.228217],[1548633600000, 1.228217],[1548720000000, 1.233411],[1548806400000, 1.232037],[1548892800000, 1.229431]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });