With relative barmode and {textposition: 'outside'}, outside text will smartly position the text of the first bar as 'inside'. However, when there are two disconnected bars this results in the text of both bars being 'inside'. This is not a problem when barmode has the default value.
https://codepen.io/haskellelephant/pen/JmpJMZ