$(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: [[1519862400000,37.0302],[1519948800000,36.6691],[1520035200000,36.5775],[1520121600000,36.5775],[1520208000000,36.5775],[1520294400000,36.5909],[1520380800000,36.6755],[1520467200000,36.1968],[1520553600000,36.1968],[1520640000000,36.1968],[1520726400000,36.1968],[1520812800000,36.1968],[1520899200000,36.0001],[1520985600000,36.1858],[1521072000000,36.3045],[1521158400000,36.6445],[1521244800000,36.733],[1521331200000,36.733],[1521417600000,36.733],[1521504000000,37.1492],[1521590400000,36.8093],[1521676800000,36.9424],[1521763200000,37.0803],[1521849600000,37.1511],[1521936000000,37.1511],[1522022400000,37.1511],[1522108800000,37.4179],[1522195200000,37.0214],[1522281600000,37.3691],[1522368000000,37.3805],[1522454400000,37.0476]], 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: [[1519862400000, 37.030207],[1519862400000, 37.030207],[1519948800000, 36.669051],[1520035200000, 36.577480],[1520121600000, 36.577480],[1520208000000, 36.577480],[1520294400000, 36.590879],[1520380800000, 36.675479],[1520467200000, 36.196822],[1520553600000, 36.196822],[1520640000000, 36.196822],[1520726400000, 36.196822],[1520812800000, 36.196822],[1520899200000, 36.000065],[1520985600000, 36.185770],[1521072000000, 36.304512],[1521158400000, 36.644532],[1521244800000, 36.732966],[1521331200000, 36.732966],[1521417600000, 36.732966],[1521504000000, 37.149232],[1521590400000, 36.809271],[1521676800000, 36.942444],[1521763200000, 37.080268],[1521849600000, 37.151125],[1521936000000, 37.151125],[1522022400000, 37.151125],[1522108800000, 37.417910],[1522195200000, 37.021423],[1522281600000, 37.369132],[1522368000000, 37.380544],[1522454400000, 37.047561]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });