Add spaces between numbers and units in legends
Fix JS errors setting unit/scale on graph creation