I was able to use TextSymbol3D to create 3D text labels, but not having any luck creating 2D labels. I took the sample:
ArcGIS API for JavaScript Sandbox
and instead of using the markerSymbol for the pointGraphic's symbol, I created a TextSymbol, but get Uncaught TypeError: c.getSVGAlign is not a function in the MapView.js
var textSymbol = new TextSymbol({
size: 12,
text: "My Label"
});
//Create a graphic and add the geometry and symbol to it
var pointGraphic = new Graphic({
geometry: point,
symbol: textSymbol
});