question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add multi-line label support

See original GitHub issue

Project idea: This project would entail the implementation of multiline labels in Cytoscape.js. This would allow for manual breaking of lines using the newline character (i.e. \n), or autobreaking based on some maximum line length.

Copied from later in the thread, as this is very important to note:

I’m going to note in this ticket, as it should have been mentioned here explicitly before, that the want for multiline labels itself is very likely indicative of design issues: If you find yourself thinking “Gee, I wish I could wrap these labels”, then you should consider that your labels themselves are too long.

Labels are meant to label elements, not to fully describe them. Long labels are – more often than not – bad UI. They clutter the graph and distract the user from the real content, the visual representation of the graph data.

It’s near trivial to clip labels with “…” and show more information elsewhere (e.g. a qtip, a panel, etc.). This, combined with time constraints and performance considerations, has made me hesitant to implement multiline labels.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
maxkfranzcommented, Feb 10, 2016

Use \n

1reaction
maxkfranzcommented, Nov 3, 2014

I’m going to note in this ticket, as it should have been mentioned here explicitly before, that the want for multiline labels itself is very likely indicative of design issues: If you find yourself thinking “Gee, I wish I could wrap these labels”, then you should consider that your labels themselves are too long.

Labels are meant to label elements, not to fully describe them. Long labels are – more often than not – bad UI. They clutter the graph and distract the user from the real content, the visual representation of the graph data.

It’s near trivial to clip labels with “…” and show more information elsewhere (e.g. a qtip, a panel, etc.). This, combined with time constraints and performance considerations, has made me hesitant to implement multiline labels.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I set adaptive multiline UILabel text? - Stack Overflow
Take a Single View application and in Storyboard Add a UILabel and a UIButton. ... Building on top of @La masse's solution, but...
Read more >
FAQ: Is it possible to create multiline labels in ArcGIS Online?
No, it is not possible to create multiline labels in ArcGIS Online. The Create Labels option in ArcGIS Online does not have the...
Read more >
UILabel with Multiple Lines Example in Swift
In this tutorial, I am going to share with you how to programmatically create a new UILabel that supports multiple lines.
Read more >
How Can I Create Labels That Span Multiple Lines? (Multi ...
Type "Multi-line Label" for the Name and click OK to go on. After you have finished selecting your label settings, Click OK to...
Read more >
Text Labels - Add Multiple Lines of Text - Brady Support
There are two ways to add another line of text on a label: ... Note: Label size and font size will determine if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found