Any way to change the width of the legend box itself?

Is there any way to change the width of the legend box or the justification and the positioning of the items? I would essentially like to have a horizontal legend stacked according to the picture below. I’ve tried horizontal orientation but it will only place the items one over the other without.

IMAGE DESIRED
image

CURRENT DASH LEGEND IN APP
image