Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row/Column Wrapping #57

Open
llchan opened this issue Apr 19, 2017 · 2 comments
Open

Row/Column Wrapping #57

llchan opened this issue Apr 19, 2017 · 2 comments

Comments

@llchan
Copy link

llchan commented Apr 19, 2017

If there are too many labels, cells can fall off the edge of the svg. I currently use a wrapper function to postprocess cells and wrap them to the next column/row when necessary. It would be nice to include this as part of d3-legend.

@susielu
Copy link
Owner

susielu commented Oct 10, 2017

Would you be interested in making a pull request or example of this function?

@woodz-
Copy link

woodz- commented Dec 15, 2017

Aloha,
not sure, whether I am on the right place with this notice. If the length of a label is much more than the wrap number set, it still depends on the textual content of the label whether a break occurs or not. For example, if there are hyphens '-' without spaces no wrapping is done, like 'two-words-joined-by-hyphen'. On the other hand if there are 2 words joined by spaces and slash, like 'two / words', wrapping occurs 2 times so that any space separated expression goes into a new line, reads as:

two
/
words

Would it make sense to provide wrapping conditions as a parameter? And is there any valid explanation to this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants