$(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: [[1538352000000,36.8819],[1538438400000,36.7584],[1538524800000,36.6556],[1538611200000,36.7895],[1538697600000,36.5849],[1538784000000,36.6522],[1538870400000,36.6522],[1538956800000,36.6522],[1539043200000,36.6314],[1539129600000,36.6231],[1539216000000,36.8257],[1539302400000,37.0238],[1539388800000,36.8828],[1539475200000,36.8828],[1539561600000,36.8828],[1539648000000,36.8828],[1539734400000,36.9465],[1539820800000,36.6004],[1539907200000,36.7202],[1539993600000,36.7243],[1540080000000,36.7243],[1540166400000,36.7243],[1540252800000,36.5006],[1540339200000,36.6729],[1540425600000,36.4171],[1540512000000,36.5377],[1540598400000,36.1612],[1540684800000,36.1612],[1540771200000,36.1612],[1540857600000,36.1505],[1540944000000,35.9274]], 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: [[1538352000000, 36.881857],[1538352000000, 36.881857],[1538438400000, 36.758384],[1538524800000, 36.655645],[1538611200000, 36.789470],[1538697600000, 36.584949],[1538784000000, 36.652174],[1538870400000, 36.652174],[1538956800000, 36.652174],[1539043200000, 36.631422],[1539129600000, 36.623092],[1539216000000, 36.825692],[1539302400000, 37.023752],[1539388800000, 36.882770],[1539475200000, 36.882770],[1539561600000, 36.882770],[1539648000000, 36.882770],[1539734400000, 36.946462],[1539820800000, 36.600351],[1539907200000, 36.720242],[1539993600000, 36.724330],[1540080000000, 36.724330],[1540166400000, 36.724330],[1540252800000, 36.500557],[1540339200000, 36.672853],[1540425600000, 36.417096],[1540512000000, 36.537676],[1540598400000, 36.161208],[1540684800000, 36.161208],[1540771200000, 36.161208],[1540857600000, 36.150487],[1540944000000, 35.927444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });