$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1554076800000,19.3221],[1554163200000,19.3671],[1554249600000,19.1004],[1554336000000,19.2778],[1554422400000,19.2105],[1554508800000,19.0469],[1554595200000,19.0469],[1554681600000,19.0469],[1554768000000,18.937],[1554854400000,19.0769],[1554940800000,19.1248],[1555027200000,19.177],[1555113600000,19.1762],[1555200000000,19.1762],[1555286400000,19.1762],[1555372800000,19.2439],[1555459200000,19.16],[1555545600000,19.1953],[1555632000000,19.2076],[1555718400000,19.2192],[1555804800000,19.2192],[1555891200000,19.2192],[1555977600000,19.163],[1556064000000,18.9773],[1556150400000,18.7222],[1556236800000,18.6148],[1556323200000,18.639],[1556409600000,18.639],[1556496000000,18.639],[1556582400000,18.639]], 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, 19.322058],[1554076800000, 19.322058],[1554163200000, 19.367137],[1554249600000, 19.100371],[1554336000000, 19.277766],[1554422400000, 19.210455],[1554508800000, 19.046866],[1554595200000, 19.046866],[1554681600000, 19.046866],[1554768000000, 18.936989],[1554854400000, 19.076858],[1554940800000, 19.124802],[1555027200000, 19.176974],[1555113600000, 19.176193],[1555200000000, 19.176193],[1555286400000, 19.176193],[1555372800000, 19.243946],[1555459200000, 19.159976],[1555545600000, 19.195283],[1555632000000, 19.207559],[1555718400000, 19.219235],[1555804800000, 19.219235],[1555891200000, 19.219235],[1555977600000, 19.162983],[1556064000000, 18.977276],[1556150400000, 18.722171],[1556236800000, 18.614786],[1556323200000, 18.639007],[1556409600000, 18.639007],[1556496000000, 18.639007],[1556582400000, 18.639007]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });