$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1525132800000,37.664],[1525219200000,37.664],[1525305600000,37.4639],[1525392000000,37.4942],[1525478400000,37.6449],[1525564800000,37.6449],[1525651200000,37.6449],[1525737600000,37.553],[1525824000000,37.4169],[1525910400000,37.4169],[1525996800000,37.3959],[1526083200000,37.4844],[1526169600000,37.4844],[1526256000000,37.4844],[1526342400000,37.4793],[1526428800000,37.4347],[1526515200000,37.2721],[1526601600000,37.2438],[1526688000000,37.1542],[1526774400000,37.1542],[1526860800000,37.1542],[1526947200000,37.0017],[1527033600000,37.0824],[1527120000000,36.984],[1527206400000,37.0465],[1527292800000,37.0849],[1527379200000,37.0849],[1527465600000,37.0849],[1527552000000,37.0849],[1527638400000,36.8214],[1527724800000,36.9607]], 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: [[1525132800000, 37.663996],[1525132800000, 37.663996],[1525219200000, 37.663996],[1525305600000, 37.463875],[1525392000000, 37.494159],[1525478400000, 37.644873],[1525564800000, 37.644873],[1525651200000, 37.644873],[1525737600000, 37.553017],[1525824000000, 37.416908],[1525910400000, 37.416908],[1525996800000, 37.395949],[1526083200000, 37.484417],[1526169600000, 37.484417],[1526256000000, 37.484417],[1526342400000, 37.479314],[1526428800000, 37.434705],[1526515200000, 37.272145],[1526601600000, 37.243771],[1526688000000, 37.154184],[1526774400000, 37.154184],[1526860800000, 37.154184],[1526947200000, 37.001709],[1527033600000, 37.082417],[1527120000000, 36.983961],[1527206400000, 37.046547],[1527292800000, 37.084900],[1527379200000, 37.084900],[1527465600000, 37.084900],[1527552000000, 37.084900],[1527638400000, 36.821412],[1527724800000, 36.960727]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });