$(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: [[1493596800000,19.8449],[1493683200000,19.8449],[1493769600000,19.8449],[1493856000000,19.8159],[1493942400000,19.5905],[1494028800000,19.5907],[1494115200000,19.5907],[1494201600000,19.5907],[1494288000000,19.5907],[1494374400000,19.5907],[1494460800000,19.5314],[1494547200000,19.476],[1494633600000,19.5462],[1494720000000,19.5462],[1494806400000,19.5462],[1494892800000,19.7036],[1494979200000,19.593],[1495065600000,19.5606],[1495152000000,19.6385],[1495238400000,19.6119],[1495324800000,19.6119],[1495411200000,19.6119],[1495497600000,19.6799],[1495584000000,19.7473],[1495670400000,19.6391],[1495756800000,19.6157],[1495843200000,19.6145],[1495929600000,19.6145],[1496016000000,19.6145],[1496102400000,19.6229],[1496188800000,19.6398]], 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: [[1493596800000, 19.844895],[1493596800000, 19.844895],[1493683200000, 19.844895],[1493769600000, 19.844895],[1493856000000, 19.815893],[1493942400000, 19.590476],[1494028800000, 19.590675],[1494115200000, 19.590675],[1494201600000, 19.590675],[1494288000000, 19.590675],[1494374400000, 19.590675],[1494460800000, 19.531388],[1494547200000, 19.476025],[1494633600000, 19.546169],[1494720000000, 19.546169],[1494806400000, 19.546169],[1494892800000, 19.703562],[1494979200000, 19.592961],[1495065600000, 19.560593],[1495152000000, 19.638471],[1495238400000, 19.611897],[1495324800000, 19.611897],[1495411200000, 19.611897],[1495497600000, 19.679857],[1495584000000, 19.747309],[1495670400000, 19.639055],[1495756800000, 19.615669],[1495843200000, 19.614493],[1495929600000, 19.614493],[1496016000000, 19.614493],[1496102400000, 19.622904],[1496188800000, 19.639780]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });