Forum Discussion
Looking for a Donut/Pie Chart Custom Visual with Text Wrap Support for Category Labels
- 6 days ago
Hi v-csrikanth thanks for the reply and sorry for being MIA it was working for me. It was not a great solution but its okay.
Hi Ankita_data
Deneb is a free option worth considering, provided your organisation allows custom visuals. It is open source, Microsoft-certified, and can create pie/donut charts in Power BI reports.
The important distinction is that Deneb requires a custom specification—it does not provide a simple “Text wrap” toggle for its default legend. Using Vega, you can build a donut with a custom colour-keyed legend whose category names span multiple lines. Vega text marks support an array of text lines or an explicit line-break delimiter, with configurable line height.
For example, you could place the donut on the left and the full category names across two or three lines on the right, within the same Deneb visual. You would need to define the wrapping rules and allocate enough space between labels. Simply increasing the text limit or removing truncation does not create wrapping.
References: Deneb documentation and Vega multiline text support.
For a simpler, no-code workaround, keep the native donut and hide its legend. Place a Table visual beside it containing the full category names and values/percentages. Enable Text wrap for the table’s values, not just its column headers, and adjust the category column width. If you add colour indicators, use the same fixed category-to-colour mapping in both visuals; the colours will not synchronise automatically.
This keeps the complete names visible on the report page without depending on tooltips. For many categories or particularly long names, the table-based approach is usually easier to read than labels crowded around a donut.
Thanks,
C Srikanth
Community Support Team