$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1525132800000,0.41762],[1525219200000,0.41762],[1525305600000,0.42186],[1525392000000,0.41256],[1525478400000,0.41622],[1525564800000,0.41622],[1525651200000,0.41622],[1525737600000,0.4192],[1525824000000,0.41613],[1525910400000,0.41613],[1525996800000,0.41892],[1526083200000,0.42436],[1526169600000,0.42436],[1526256000000,0.42436],[1526342400000,0.4237],[1526428800000,0.42333],[1526515200000,0.42065],[1526601600000,0.42362],[1526688000000,0.42214],[1526774400000,0.42214],[1526860800000,0.42214],[1526947200000,0.41712],[1527033600000,0.42558],[1527120000000,0.42344],[1527206400000,0.42514],[1527292800000,0.42405],[1527379200000,0.42405],[1527465600000,0.42405],[1527552000000,0.42405],[1527638400000,0.41664],[1527724800000,0.41755]], 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, 0.417620],[1525132800000, 0.417620],[1525219200000, 0.417620],[1525305600000, 0.421860],[1525392000000, 0.412560],[1525478400000, 0.416220],[1525564800000, 0.416220],[1525651200000, 0.416220],[1525737600000, 0.419200],[1525824000000, 0.416130],[1525910400000, 0.416130],[1525996800000, 0.418920],[1526083200000, 0.424360],[1526169600000, 0.424360],[1526256000000, 0.424360],[1526342400000, 0.423700],[1526428800000, 0.423330],[1526515200000, 0.420650],[1526601600000, 0.423620],[1526688000000, 0.422140],[1526774400000, 0.422140],[1526860800000, 0.422140],[1526947200000, 0.417120],[1527033600000, 0.425580],[1527120000000, 0.423440],[1527206400000, 0.425140],[1527292800000, 0.424050],[1527379200000, 0.424050],[1527465600000, 0.424050],[1527552000000, 0.424050],[1527638400000, 0.416640],[1527724800000, 0.417550]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });