$(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: [[1554076800000,35.6163],[1554163200000,35.667],[1554249600000,35.1291],[1554336000000,35.6568],[1554422400000,35.4914],[1554508800000,34.9895],[1554595200000,34.9895],[1554681600000,34.9895],[1554768000000,34.7679],[1554854400000,34.8702],[1554940800000,35.0691],[1555027200000,35.0744],[1555113600000,35.0478],[1555200000000,35.0478],[1555286400000,35.0478],[1555372800000,35.1433],[1555459200000,34.9688],[1555545600000,34.8292],[1555632000000,34.9166],[1555718400000,34.9378],[1555804800000,34.9378],[1555891200000,34.9378],[1555977600000,34.8355],[1556064000000,34.7145],[1556150400000,34.4439],[1556236800000,34.2554],[1556323200000,34.1607],[1556409600000,34.1607],[1556496000000,34.1607],[1556582400000,34.1607]], 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, 35.616250],[1554076800000, 35.616250],[1554163200000, 35.667023],[1554249600000, 35.129136],[1554336000000, 35.656756],[1554422400000, 35.491370],[1554508800000, 34.989513],[1554595200000, 34.989513],[1554681600000, 34.989513],[1554768000000, 34.767875],[1554854400000, 34.870203],[1554940800000, 35.069062],[1555027200000, 35.074402],[1555113600000, 35.047832],[1555200000000, 35.047832],[1555286400000, 35.047832],[1555372800000, 35.143252],[1555459200000, 34.968786],[1555545600000, 34.829176],[1555632000000, 34.916574],[1555718400000, 34.937801],[1555804800000, 34.937801],[1555891200000, 34.937801],[1555977600000, 34.835541],[1556064000000, 34.714477],[1556150400000, 34.443863],[1556236800000, 34.255427],[1556323200000, 34.160718],[1556409600000, 34.160718],[1556496000000, 34.160718],[1556582400000, 34.160718]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });