$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1525132800000,0.101068],[1525219200000,0.101068],[1525305600000,0.100001],[1525392000000,0.100009],[1525478400000,0.100312],[1525564800000,0.100312],[1525651200000,0.100312],[1525737600000,0.099544],[1525824000000,0.098828],[1525910400000,0.098828],[1525996800000,0.099127],[1526083200000,0.099263],[1526169600000,0.099263],[1526256000000,0.099263],[1526342400000,0.099483],[1526428800000,0.098275],[1526515200000,0.097342],[1526601600000,0.097656],[1526688000000,0.096968],[1526774400000,0.096968],[1526860800000,0.096968],[1526947200000,0.096029],[1527033600000,0.09686],[1527120000000,0.095566],[1527206400000,0.095903],[1527292800000,0.095435],[1527379200000,0.095435],[1527465600000,0.095435],[1527552000000,0.095435],[1527638400000,0.094251],[1527724800000,0.095132]], 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.101068],[1525132800000, 0.101068],[1525219200000, 0.101068],[1525305600000, 0.100001],[1525392000000, 0.100009],[1525478400000, 0.100312],[1525564800000, 0.100312],[1525651200000, 0.100312],[1525737600000, 0.099544],[1525824000000, 0.098828],[1525910400000, 0.098828],[1525996800000, 0.099127],[1526083200000, 0.099263],[1526169600000, 0.099263],[1526256000000, 0.099263],[1526342400000, 0.099483],[1526428800000, 0.098275],[1526515200000, 0.097342],[1526601600000, 0.097656],[1526688000000, 0.096968],[1526774400000, 0.096968],[1526860800000, 0.096968],[1526947200000, 0.096029],[1527033600000, 0.096860],[1527120000000, 0.095566],[1527206400000, 0.095903],[1527292800000, 0.095435],[1527379200000, 0.095435],[1527465600000, 0.095435],[1527552000000, 0.095435],[1527638400000, 0.094251],[1527724800000, 0.095132]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });