I can't get property objects like xaxis working in a scatter3d plotly javascript

It seems in my layout, only single line properties work, ie. “title: ‘Some title’” and the object style properties do not work, ie "xaxis: { color: “white”, title: {text: “XXX”}} …

Nothing inside the xaxis gets set, any ideas?