$(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: [[1546300800000,19.5585],[1546387200000,19.5585],[1546473600000,19.5585],[1546560000000,19.1688],[1546646400000,19.5176],[1546732800000,19.5176],[1546819200000,19.5176],[1546905600000,19.5176],[1546992000000,19.9845],[1547078400000,20.1564],[1547164800000,20.3416],[1547251200000,20.3318],[1547337600000,20.3318],[1547424000000,20.3318],[1547510400000,20.1535],[1547596800000,20.258],[1547683200000,20.0951],[1547769600000,20.0988],[1547856000000,20.1285],[1547942400000,20.1285],[1548028800000,20.1285],[1548115200000,19.9856],[1548201600000,19.8913],[1548288000000,19.7633],[1548374400000,19.7361],[1548460800000,19.8014],[1548547200000,19.8014],[1548633600000,19.8014],[1548720000000,19.9401],[1548806400000,19.8829],[1548892800000,19.9697]], 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: [[1546300800000, 19.558518],[1546300800000, 19.558518],[1546387200000, 19.558518],[1546473600000, 19.558518],[1546560000000, 19.168820],[1546646400000, 19.517591],[1546732800000, 19.517591],[1546819200000, 19.517591],[1546905600000, 19.517591],[1546992000000, 19.984514],[1547078400000, 20.156366],[1547164800000, 20.341598],[1547251200000, 20.331763],[1547337600000, 20.331763],[1547424000000, 20.331763],[1547510400000, 20.153494],[1547596800000, 20.257972],[1547683200000, 20.095050],[1547769600000, 20.098837],[1547856000000, 20.128546],[1547942400000, 20.128546],[1548028800000, 20.128546],[1548115200000, 19.985648],[1548201600000, 19.891311],[1548288000000, 19.763280],[1548374400000, 19.736144],[1548460800000, 19.801425],[1548547200000, 19.801425],[1548633600000, 19.801425],[1548720000000, 19.940132],[1548806400000, 19.882946],[1548892800000, 19.969650]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });