How to set xaxis format only as years?

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);

Set xaxis.type to 'category' instead.

More info here: https://github.com/plotly/plotly.js/issues/135