jsonvega-litevegasunburst-diagram

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


Solution

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