Replies: 2 comments 2 replies
-
Being based on SVG, there's no builtin support for line breaks/text width, your best option would be to use a custom layer, you could even use a foreign object and a div, which can make dealing with text a bit easier, but it requires a bit of work to implement custom nodes. The dimensions of the nodes are quite important for the rest of the layout, so doing this would be very difficult to accept some arbitrary functions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there any documentation available for using custom layers ? @plouc |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to achieve a custom label where maybe I can pass a label and a subtext underneath. Also, some sort of width or line break if the text is too long
Is this currently possible with Nivo Sankey?
Also the capability of custom positioning. Seems like labelPosition & labelOrientation only take a string and not a function. If it can be made dynamic like colors that would be great.
Beta Was this translation helpful? Give feedback.
All reactions