$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1525132800000,1.24134],[1525219200000,1.24134],[1525305600000,1.22669],[1525392000000,1.22763],[1525478400000,1.23456],[1525564800000,1.23456],[1525651200000,1.23456],[1525737600000,1.22622],[1525824000000,1.21923],[1525910400000,1.21923],[1525996800000,1.22014],[1526083200000,1.22578],[1526169600000,1.22578],[1526256000000,1.22578],[1526342400000,1.23094],[1526428800000,1.21899],[1526515200000,1.20899],[1526601600000,1.20968],[1526688000000,1.20379],[1526774400000,1.20379],[1526860800000,1.20379],[1526947200000,1.19438],[1527033600000,1.19634],[1527120000000,1.18298],[1527206400000,1.18636],[1527292800000,1.18492],[1527379200000,1.18492],[1527465600000,1.18492],[1527552000000,1.18492],[1527638400000,1.16436],[1527724800000,1.17674]], 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, 1.241339],[1525132800000, 1.241339],[1525219200000, 1.241339],[1525305600000, 1.226686],[1525392000000, 1.227626],[1525478400000, 1.234564],[1525564800000, 1.234564],[1525651200000, 1.234564],[1525737600000, 1.226216],[1525824000000, 1.219227],[1525910400000, 1.219227],[1525996800000, 1.220137],[1526083200000, 1.225778],[1526169600000, 1.225778],[1526256000000, 1.225778],[1526342400000, 1.230936],[1526428800000, 1.218986],[1526515200000, 1.208992],[1526601600000, 1.209684],[1526688000000, 1.203787],[1526774400000, 1.203787],[1526860800000, 1.203787],[1526947200000, 1.194382],[1527033600000, 1.196340],[1527120000000, 1.182980],[1527206400000, 1.186365],[1527292800000, 1.184923],[1527379200000, 1.184923],[1527465600000, 1.184923],[1527552000000, 1.184923],[1527638400000, 1.164363],[1527724800000, 1.176744]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });