$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1525132800000,26.4366],[1525219200000,26.4366],[1525305600000,26.2644],[1525392000000,26.2659],[1525478400000,26.3473],[1525564800000,26.3473],[1525651200000,26.3473],[1525737600000,26.1539],[1525824000000,26.1398],[1525910400000,26.1398],[1525996800000,26.1262],[1526083200000,26.2002],[1526169600000,26.2002],[1526256000000,26.2002],[1526342400000,26.2216],[1526428800000,26.1514],[1526515200000,26.1904],[1526601600000,26.1578],[1526688000000,26.1657],[1526774400000,26.1657],[1526860800000,26.1657],[1526947200000,26.0969],[1527033600000,26.1955],[1527120000000,26.3289],[1527206400000,26.3797],[1527292800000,26.3345],[1527379200000,26.3345],[1527465600000,26.3345],[1527552000000,26.3345],[1527638400000,26.1919],[1527724800000,26.406]], 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.436578],[1525132800000, 26.436578],[1525219200000, 26.436578],[1525305600000, 26.264438],[1525392000000, 26.265940],[1525478400000, 26.347347],[1525564800000, 26.347347],[1525651200000, 26.347347],[1525737600000, 26.153950],[1525824000000, 26.139760],[1525910400000, 26.139760],[1525996800000, 26.126174],[1526083200000, 26.200204],[1526169600000, 26.200204],[1526256000000, 26.200204],[1526342400000, 26.221551],[1526428800000, 26.151387],[1526515200000, 26.190390],[1526601600000, 26.157792],[1526688000000, 26.165731],[1526774400000, 26.165731],[1526860800000, 26.165731],[1526947200000, 26.096931],[1527033600000, 26.195545],[1527120000000, 26.328901],[1527206400000, 26.379681],[1527292800000, 26.334451],[1527379200000, 26.334451],[1527465600000, 26.334451],[1527552000000, 26.334451],[1527638400000, 26.191854],[1527724800000, 26.405961]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });