var data = [{
“y” : [1.1, 1.16, 1.16],
“x” : [“2013”, “2014”, “2015”],
“type” : “scatter”,
}
];
var layout={
title:‘AutoScale Of XAxis’,
xaxis:{
title: ‘Value A’,
type:‘date’
},
yaxis:{
title: ‘Value B’}
};
Plotly.newPlot(‘myDiv’, data, layout);