$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1525132800000,3.27344],[1525219200000,3.27344],[1525305600000,3.23897],[1525392000000,3.25598],[1525478400000,3.26473],[1525564800000,3.26473],[1525651200000,3.26473],[1525737600000,3.253],[1525824000000,3.23403],[1525910400000,3.23403],[1525996800000,3.25873],[1526083200000,3.27636],[1526169600000,3.27636],[1526256000000,3.27636],[1526342400000,3.27999],[1526428800000,3.25549],[1526515200000,3.22663],[1526601600000,3.23507],[1526688000000,3.21645],[1526774400000,3.21645],[1526860800000,3.21645],[1526947200000,3.21895],[1527033600000,3.24008],[1527120000000,3.21221],[1527206400000,3.2295],[1527292800000,3.21743],[1527379200000,3.21743],[1527465600000,3.21743],[1527552000000,3.21743],[1527638400000,3.15476],[1527724800000,3.1846]], 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, 3.273439],[1525132800000, 3.273439],[1525219200000, 3.273439],[1525305600000, 3.238968],[1525392000000, 3.255980],[1525478400000, 3.264732],[1525564800000, 3.264732],[1525651200000, 3.264732],[1525737600000, 3.252998],[1525824000000, 3.234026],[1525910400000, 3.234026],[1525996800000, 3.258725],[1526083200000, 3.276364],[1526169600000, 3.276364],[1526256000000, 3.276364],[1526342400000, 3.279990],[1526428800000, 3.255495],[1526515200000, 3.226632],[1526601600000, 3.235065],[1526688000000, 3.216451],[1526774400000, 3.216451],[1526860800000, 3.216451],[1526947200000, 3.218946],[1527033600000, 3.240077],[1527120000000, 3.212213],[1527206400000, 3.229501],[1527292800000, 3.217428],[1527379200000, 3.217428],[1527465600000, 3.217428],[1527552000000, 3.217428],[1527638400000, 3.154757],[1527724800000, 3.184604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });