$(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: [[1548979200000,20.1867],[1549065600000,20.0306],[1549152000000,20.0306],[1549238400000,20.0306],[1549324800000,19.7997],[1549411200000,19.7126],[1549497600000,19.2403],[1549584000000,19.171],[1549670400000,19.0683],[1549756800000,19.0683],[1549843200000,19.0683],[1549929600000,19.1451],[1550016000000,19.1559],[1550102400000,19.2631],[1550188800000,19.3109],[1550275200000,19.3743],[1550361600000,19.3743],[1550448000000,19.3743],[1550534400000,19.4605],[1550620800000,19.3246],[1550707200000,19.3908],[1550793600000,19.1989],[1550880000000,19.2157],[1550966400000,19.2157],[1551052800000,19.2157],[1551139200000,19.3594],[1551225600000,19.2835],[1551312000000,19.3186]], 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: [[1548979200000, 20.186745],[1548979200000, 20.186745],[1549065600000, 20.030625],[1549152000000, 20.030625],[1549238400000, 20.030625],[1549324800000, 19.799657],[1549411200000, 19.712555],[1549497600000, 19.240282],[1549584000000, 19.170981],[1549670400000, 19.068307],[1549756800000, 19.068307],[1549843200000, 19.068307],[1549929600000, 19.145074],[1550016000000, 19.155887],[1550102400000, 19.263145],[1550188800000, 19.310856],[1550275200000, 19.374292],[1550361600000, 19.374292],[1550448000000, 19.374292],[1550534400000, 19.460476],[1550620800000, 19.324646],[1550707200000, 19.390756],[1550793600000, 19.198939],[1550880000000, 19.215667],[1550966400000, 19.215667],[1551052800000, 19.215667],[1551139200000, 19.359415],[1551225600000, 19.283490],[1551312000000, 19.318600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });