christophergandrud / christophergandrud/networkD3

Multi-line labels for long labels in chord diagram

Open
#310 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
R
Stars
659
Forks
259
PR merge metrics
No merged PRs in 30d

Description

I am making this chord diagram in an R shiny app. The labels are very unruly and distract from the figure a lot. I attempted to fix this by making the labels multi-line. I added \n characters every 25 characters to the labels. This plot below is the result. I guess since this is being rendered in javascript, it ignores my \n characters and still just puts the label on one line.

I would love it if you would add this functionality to allow me to label this plot how I want. As I'm following a specific set of guidelines/naming conventions, I would like to avoid changing the actual text in my labels.

![Image](https://github.com/user-attachments/assets/16cc9c8e-8454-4a84-a2e2-32eed5c9f2d4)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.