Lot of ways to skin this cat, regarding lengths of studding, spacers needed, washers etc, but as long as the thread to enter the stanchion is right . . .
Here are several (pic not diagram with measurements - I just used whatever scrap was to hand), for doing different legs. All the same idea.
Broom handles can work too!