30

Is there a way to attach a label to a line (straight or curved) in a Google drawing, so if the line is moved to a different location the label automatically goes with it?

I can place a textbox next to the line however there doesn't seen to be a way to keep them together. I tried using the group function but that doesn't keep the line and the textbox together physically.

0

3 Answers 3

4

Copied from Google product forum:

You can create a new shape in the middle of the two shapes you are connecting and then connect the new shape to the original two shapes with lines. eg Shape 1 ---------- New Shape ---------- > Shape 2 Then add your text to the new shape and make the line and fill colour transparent.

1
  • What? I don't understand your answer.
    – Max
    Mar 30, 2022 at 0:43
3

You could use Shift to select several objects and move them together. To maintain this association, group those objects, then be sure to select the group, not individual objects.

To be sure that you are selecting the group, instead of individual objects,

  1. Click outside of the group, to cancel the active selection.
  2. Click over one line or shape object, but no over a text object of that group.
  3. The result should display a single square with handlers and group members will be highlighted but without object handlers.

A group in Google Drawings

References
Select and manipulate multiple objects - Docs editors Help

3
  • 3
    Is it possible to anchor the text to the line? The use case is when you have a flow chart where the line is anchored to two shapes. When I move the shape, the line stays connected. I always want the text to be the same place on the line.
    – lax4mike
    Jan 26, 2017 at 0:44
  • You could add a textbox and connect one input and one output lines to the textbox. If this isn't clear please post a new question.
    – Rubén
    Jan 26, 2017 at 23:42
  • So looks like the answer is "not out of the box" Jan 17 at 20:47
2

Two segments connected

What if you just connected a "text" field between two segments?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.