$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1525132800000,31.6181],[1525219200000,31.6181],[1525305600000,31.4044],[1525392000000,31.4088],[1525478400000,31.4851],[1525564800000,31.4851],[1525651200000,31.4851],[1525737600000,31.2906],[1525824000000,31.122],[1525910400000,31.122],[1525996800000,31.111],[1526083200000,31.2647],[1526169600000,31.2647],[1526256000000,31.2647],[1526342400000,31.3741],[1526428800000,31.1463],[1526515200000,30.8837],[1526601600000,30.9159],[1526688000000,30.8049],[1526774400000,30.8049],[1526860800000,30.8049],[1526947200000,30.6717],[1527033600000,30.7483],[1527120000000,30.5363],[1527206400000,30.6189],[1527292800000,30.5295],[1527379200000,30.5295],[1527465600000,30.5295],[1527552000000,30.5295],[1527638400000,30.1652],[1527724800000,30.4012]], 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, 31.618147],[1525132800000, 31.618147],[1525219200000, 31.618147],[1525305600000, 31.404389],[1525392000000, 31.408811],[1525478400000, 31.485079],[1525564800000, 31.485079],[1525651200000, 31.485079],[1525737600000, 31.290585],[1525824000000, 31.121998],[1525910400000, 31.121998],[1525996800000, 31.111048],[1526083200000, 31.264704],[1526169600000, 31.264704],[1526256000000, 31.264704],[1526342400000, 31.374086],[1526428800000, 31.146302],[1526515200000, 30.883708],[1526601600000, 30.915895],[1526688000000, 30.804915],[1526774400000, 30.804915],[1526860800000, 30.804915],[1526947200000, 30.671723],[1527033600000, 30.748331],[1527120000000, 30.536259],[1527206400000, 30.618896],[1527292800000, 30.529530],[1527379200000, 30.529530],[1527465600000, 30.529530],[1527552000000, 30.529530],[1527638400000, 30.165158],[1527724800000, 30.401182]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });