Denis
Denis

Reputation: 11

How to wrap text in Sunburst chart?

I want to wrap the text on this sunburst chart so it is displayed in 2 or more lines instead of 1. The test data is not the best, but it shows the scenario am facing - Link to VegaEditor.

I have tried to split and join it, but with no results.

Slice and join, but with no result

Upvotes: -1

Views: 178

Answers (2)

Denis
Denis

Reputation: 11

Found a solution by splitting the text into 2 parts and placing them one on top of the other.

Upvotes: 0

davidebacci
davidebacci

Reputation: 30344

You're splitting on space but none of the words contain spaces.

Upvotes: 0

Related Questions