Hi All,
Just letting people know that I've built a Scalebar widget for the 4.x API.
It blatantly uses some of the code from the Esri 3.17 Scalebar widget, so their existing widget did most of the legwork!
The widget uses D3 to build the scalebar.
GitHub - kingy68/esri-javascript-scalebar-4
Cheers,
Jordan