$(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: [[1496275200000,19.6113],[1496361600000,19.4134],[1496448000000,19.4288],[1496534400000,19.4288],[1496620800000,19.4288],[1496707200000,19.4288],[1496793600000,19.6465],[1496880000000,19.801],[1496966400000,19.7146],[1497052800000,19.6785],[1497139200000,19.6785],[1497225600000,19.6785],[1497312000000,19.6665],[1497398400000,19.596],[1497484800000,19.7216],[1497571200000,19.7253],[1497657600000,19.7907],[1497744000000,19.7907],[1497830400000,19.7907],[1497916800000,19.8186],[1498003200000,19.7932],[1498089600000,19.6828],[1498176000000,19.6247],[1498262400000,19.6996],[1498348800000,19.6996],[1498435200000,19.6996],[1498521600000,19.7191],[1498608000000,19.8483],[1498694400000,19.8483],[1498780800000,20.0342]], 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: [[1496275200000, 19.611284],[1496275200000, 19.611284],[1496361600000, 19.413373],[1496448000000, 19.428807],[1496534400000, 19.428807],[1496620800000, 19.428807],[1496707200000, 19.428807],[1496793600000, 19.646545],[1496880000000, 19.801019],[1496966400000, 19.714618],[1497052800000, 19.678527],[1497139200000, 19.678527],[1497225600000, 19.678527],[1497312000000, 19.666511],[1497398400000, 19.595987],[1497484800000, 19.721594],[1497571200000, 19.725271],[1497657600000, 19.790680],[1497744000000, 19.790680],[1497830400000, 19.790680],[1497916800000, 19.818632],[1498003200000, 19.793180],[1498089600000, 19.682799],[1498176000000, 19.624695],[1498262400000, 19.699649],[1498348800000, 19.699649],[1498435200000, 19.699649],[1498521600000, 19.719146],[1498608000000, 19.848275],[1498694400000, 19.848275],[1498780800000, 20.034155]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });