Logic Machine Forum
Space between number and unit in visu - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Space between number and unit in visu (/showthread.php?tid=2662)



Space between number and unit in visu - Thomas - 29.05.2020

Hi
I'd like to add a space between number and unit in visualisation.
Unfortunately it looks like units are not wrapped around in div.

<div class="item item-control item-value item-backdrop" style="top: 531px; left: 135px; z-index: 71; font-size: 12px; color: rgb(255, 255, 255);">50%</div>

Do you have any idea how to do it?
I mean javascript etc. Not adding an extra space to units definitions because it's ugly.


RE: Space between nomber and unit in visu - Erwin van der Zwart - 29.05.2020

Just fill in a unit in the object with a leading space instead of using the auto created unit


RE: Space between number and unit in visu - Thomas - 29.05.2020

I don't want presentation style in data. Because typos can differ betweeen countries etc. Plus I wrote "space" but what I exactly want is non-breakable space or better non-breakable short space.
Isn't there any other way? Like inject visu web page bootloader and change the generated DOM?


RE: Space between number and unit in visu - admin - 29.05.2020

You can put any UTF-8 characters into the units field, including non-breaking space.