$(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: [[1556668800000,18.639],[1556755200000,18.639],[1556841600000,18.6449],[1556928000000,18.5279],[1557014400000,18.5279],[1557100800000,18.5279],[1557187200000,18.5212],[1557273600000,18.478],[1557360000000,18.3929],[1557446400000,18.3929],[1557532800000,18.3257],[1557619200000,18.3257],[1557705600000,18.3257],[1557792000000,18.1912],[1557878400000,18.1725],[1557964800000,18.2445],[1558051200000,18.2027],[1558137600000,18.1406],[1558224000000,18.1406],[1558310400000,18.1406],[1558396800000,18.1282],[1558483200000,17.9647],[1558569600000,18.1154],[1558656000000,18.1094],[1558742400000,18.2767],[1558828800000,18.2767],[1558915200000,18.2767],[1559001600000,18.2332],[1559088000000,18.286],[1559174400000,18.4711],[1559260800000,18.5861]], 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: [[1556668800000, 18.639007],[1556668800000, 18.639007],[1556755200000, 18.639007],[1556841600000, 18.644947],[1556928000000, 18.527852],[1557014400000, 18.527852],[1557100800000, 18.527852],[1557187200000, 18.521179],[1557273600000, 18.477993],[1557360000000, 18.392910],[1557446400000, 18.392910],[1557532800000, 18.325681],[1557619200000, 18.325681],[1557705600000, 18.325681],[1557792000000, 18.191247],[1557878400000, 18.172530],[1557964800000, 18.244514],[1558051200000, 18.202656],[1558137600000, 18.140622],[1558224000000, 18.140622],[1558310400000, 18.140622],[1558396800000, 18.128228],[1558483200000, 17.964684],[1558569600000, 18.115392],[1558656000000, 18.109366],[1558742400000, 18.276665],[1558828800000, 18.276665],[1558915200000, 18.276665],[1559001600000, 18.233238],[1559088000000, 18.285968],[1559174400000, 18.471069],[1559260800000, 18.586112]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });