Assuming that nothing is parented, the anchor point of the bar is on its left edge, and the two text layers are center-justified, the expressions could look something like this:
// bar scale
margin = 90;
w1 = thisComp.layer(“text 1”).sourceRectAtTime(time,false).width;
w2 = thisComp.layer(“text 2”).sourceRectAtTime(time,false).width;
d = thisComp.layer(“divider”).width;
w = margin*4 + w1 + w2 + d;
[value[0]*w/width,value[1]]
// divider position
margin = 90;
w1 = thisComp.layer(“text 1”).sourceRectAtTime(time,false).width;
xb = thisComp.layer(“bar”).position[0];
x = xb + margin*2 + w1 + width/2;
[x, value[1]]
// text 1 position
margin = 90;
w1 = sourceRectAtTime(time,false).width;
xb = thisComp.layer(“bar”).position[0];
x = xb + margin + w1/2;
[x,value[1]]
// text 2 position
margin = 90;
w1 = thisComp.layer(“text 1”).sourceRectAtTime(time,false).width;
w2 = sourceRectAtTime(time,false).width;
d = thisComp.layer(“divider”).width;
xb = thisComp.layer(“bar”).position[0];
x = xb + margin*3 + d + w1 + w2/2;
[x,value[1]]
Dan