$(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: [[1538352000000,20.3921],[1538438400000,20.3756],[1538524800000,20.2968],[1538611200000,20.2552],[1538697600000,19.9624],[1538784000000,19.8613],[1538870400000,19.8613],[1538956800000,19.8613],[1539043200000,19.8494],[1539129600000,19.818],[1539216000000,19.8712],[1539302400000,19.8554],[1539388800000,19.9089],[1539475200000,19.9089],[1539561600000,19.9089],[1539648000000,19.9089],[1539734400000,19.924],[1539820800000,19.8815],[1539907200000,20.0113],[1539993600000,20.1212],[1540080000000,20.1212],[1540166400000,20.1212],[1540252800000,19.9417],[1540339200000,19.8916],[1540425600000,19.9987],[1540512000000,20.0981],[1540598400000,19.866],[1540684800000,19.866],[1540771200000,19.866],[1540857600000,19.9846],[1540944000000,19.9866]], 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: [[1538352000000, 20.392119],[1538352000000, 20.392119],[1538438400000, 20.375627],[1538524800000, 20.296801],[1538611200000, 20.255171],[1538697600000, 19.962393],[1538784000000, 19.861333],[1538870400000, 19.861333],[1538956800000, 19.861333],[1539043200000, 19.849350],[1539129600000, 19.818013],[1539216000000, 19.871240],[1539302400000, 19.855388],[1539388800000, 19.908881],[1539475200000, 19.908881],[1539561600000, 19.908881],[1539648000000, 19.908881],[1539734400000, 19.923976],[1539820800000, 19.881519],[1539907200000, 20.011268],[1539993600000, 20.121229],[1540080000000, 20.121229],[1540166400000, 20.121229],[1540252800000, 19.941685],[1540339200000, 19.891574],[1540425600000, 19.998691],[1540512000000, 20.098105],[1540598400000, 19.866038],[1540684800000, 19.866038],[1540771200000, 19.866038],[1540857600000, 19.984618],[1540944000000, 19.986644]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });