$(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: [[1554076800000,30.5694],[1554163200000,30.5517],[1554249600000,30.2111],[1554336000000,30.4473],[1554422400000,30.316],[1554508800000,30.0693],[1554595200000,30.0693],[1554681600000,30.0693],[1554768000000,29.964],[1554854400000,30.1052],[1554940800000,30.1885],[1555027200000,30.2229],[1555113600000,30.2428],[1555200000000,30.2428],[1555286400000,30.2428],[1555372800000,30.3304],[1555459200000,30.2095],[1555545600000,30.1596],[1555632000000,30.1924],[1555718400000,30.2107],[1555804800000,30.2107],[1555891200000,30.2107],[1555977600000,30.1223],[1556064000000,30.0107],[1556150400000,29.8094],[1556236800000,29.6087],[1556323200000,29.4944],[1556409600000,29.4944],[1556496000000,29.4944],[1556582400000,29.4944]], 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: [[1554076800000, 30.569427],[1554076800000, 30.569427],[1554163200000, 30.551658],[1554249600000, 30.211057],[1554336000000, 30.447304],[1554422400000, 30.316019],[1554508800000, 30.069287],[1554595200000, 30.069287],[1554681600000, 30.069287],[1554768000000, 29.963998],[1554854400000, 30.105190],[1554940800000, 30.188501],[1555027200000, 30.222910],[1555113600000, 30.242774],[1555200000000, 30.242774],[1555286400000, 30.242774],[1555372800000, 30.330384],[1555459200000, 30.209534],[1555545600000, 30.159629],[1555632000000, 30.192362],[1555718400000, 30.210716],[1555804800000, 30.210716],[1555891200000, 30.210716],[1555977600000, 30.122292],[1556064000000, 30.010665],[1556150400000, 29.809441],[1556236800000, 29.608679],[1556323200000, 29.494364],[1556409600000, 29.494364],[1556496000000, 29.494364],[1556582400000, 29.494364]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });