var layout = { xaxis: { range: ['2017-04-04', '2017-08-06'], type: 'date' }, yaxis: { autorange: true, range: [86.8700008333, 138.870004167], type: 'linear' } };