altosui: use Altos constants in graphing code