My question relates to some pretty old posts but I wanted to know if there are any updates to this issue.
https://community.esri.com/t5/arcgis-pro-ideas/scale-bar-with-dynamic-units/idi-p/973901
I have a web application using ArcGIS API for JavaScript. I have a scale bar on the map and it changes units between meters and kilometers depending on the scale (ScaleBar unit = 'metric'). That works just as I want it to work. I have a printing widget on client side and printing utils on ArcGIS server. I use my custom layout for printing. Problem is that I cant find a way for the scale bar units on the layout to switch between meters and kilometers depending on the scale of the map. I would like it to work the same way as scale bar units work in my web application.
I found a workaround (https://support.esri.com/en/technical-article/000011784) but this doesn't solve the original problem of overlapping tick labels when scale is quite large or small.
Note: Post is from member @MiikaHuhtanen.