Display complex graphic on 3D cubes

Hi all, I would like to display the dimension of the 3D cube on the cube itself. The effect I hope to achieve is something similar to the image shown below.

6888053--805322--upload_2021-3-1_9-57-19.png
It might not necessarily to have the arrows displayed, all I want to do is to display the dimension obtained from the code below and constantly allow the user to know the size of the game object during runtime. Any suggestions that can achieve such effect are greatly appreciated!! Thanks in advance!!

.GetComponent<BoxCollider>().bounds.size

Currently, the best I could do is to attach a 3D text mesh pro as the child of the cube and assign some values as a string to it. But I am facing problems such as scaling issues and blurry display due to the size of the cube.