I would like to change the initial unit used by the scale component of a map, so I can force it to match my user's preferences. I've tried using the switchUnit method of the scale bar component, but it doesn't appear to change the scale's units.

Is this the correct way to achieve this, or am I missing something ?