$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1525132800000,19.7923],[1525219200000,19.7923],[1525305600000,19.6437],[1525392000000,19.7217],[1525478400000,19.7833],[1525564800000,19.7833],[1525651200000,19.7833],[1525737600000,19.7019],[1525824000000,19.5379],[1525910400000,19.5379],[1525996800000,19.6099],[1526083200000,19.7865],[1526169600000,19.7865],[1526256000000,19.7865],[1526342400000,19.7806],[1526428800000,19.642],[1526515200000,19.6199],[1526601600000,19.7155],[1526688000000,19.6548],[1526774400000,19.6548],[1526860800000,19.6548],[1526947200000,19.6374],[1527033600000,19.7828],[1527120000000,19.645],[1527206400000,19.7299],[1527292800000,19.7935],[1527379200000,19.7935],[1527465600000,19.7935],[1527552000000,19.7935],[1527638400000,19.6311],[1527724800000,19.7295]], 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, 19.792267],[1525132800000, 19.792267],[1525219200000, 19.792267],[1525305600000, 19.643704],[1525392000000, 19.721720],[1525478400000, 19.783273],[1525564800000, 19.783273],[1525651200000, 19.783273],[1525737600000, 19.701917],[1525824000000, 19.537948],[1525910400000, 19.537948],[1525996800000, 19.609863],[1526083200000, 19.786535],[1526169600000, 19.786535],[1526256000000, 19.786535],[1526342400000, 19.780648],[1526428800000, 19.641989],[1526515200000, 19.619915],[1526601600000, 19.715512],[1526688000000, 19.654766],[1526774400000, 19.654766],[1526860800000, 19.654766],[1526947200000, 19.637443],[1527033600000, 19.782752],[1527120000000, 19.645046],[1527206400000, 19.729941],[1527292800000, 19.793523],[1527379200000, 19.793523],[1527465600000, 19.793523],[1527552000000, 19.793523],[1527638400000, 19.631107],[1527724800000, 19.729497]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });