$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1525132800000,26.1956],[1525219200000,26.1956],[1525305600000,26.1551],[1525392000000,26.1915],[1525478400000,26.3055],[1525564800000,26.3055],[1525651200000,26.3055],[1525737600000,26.2902],[1525824000000,26.219],[1525910400000,26.219],[1525996800000,26.1922],[1526083200000,26.198],[1526169600000,26.198],[1526256000000,26.198],[1526342400000,26.1712],[1526428800000,26.2108],[1526515200000,26.2082],[1526601600000,26.1888],[1526688000000,26.148],[1526774400000,26.148],[1526860800000,26.148],[1526947200000,26.0836],[1527033600000,26.0712],[1527120000000,26.0815],[1527206400000,26.1075],[1527292800000,26.1495],[1527379200000,26.1495],[1527465600000,26.1495],[1527552000000,26.1495],[1527638400000,26.0989],[1527724800000,26.1358]], 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, 26.195648],[1525132800000, 26.195648],[1525219200000, 26.195648],[1525305600000, 26.155067],[1525392000000, 26.191470],[1525478400000, 26.305522],[1525564800000, 26.305522],[1525651200000, 26.305522],[1525737600000, 26.290191],[1525824000000, 26.219038],[1525910400000, 26.219038],[1525996800000, 26.192160],[1526083200000, 26.198009],[1526169600000, 26.198009],[1526256000000, 26.198009],[1526342400000, 26.171243],[1526428800000, 26.210807],[1526515200000, 26.208170],[1526601600000, 26.188814],[1526688000000, 26.147963],[1526774400000, 26.147963],[1526860800000, 26.147963],[1526947200000, 26.083615],[1527033600000, 26.071164],[1527120000000, 26.081533],[1527206400000, 26.107517],[1527292800000, 26.149490],[1527379200000, 26.149490],[1527465600000, 26.149490],[1527552000000, 26.149490],[1527638400000, 26.098943],[1527724800000, 26.135817]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });