GitHub user dosubot[bot] added a comment to the discussion: Labels are not
displayed correctly in version 5.0
<!-- Answer -->
In Superset 5.0, Pie/Donut chart label formatting is controlled by the **Label
Type** setting. To fix the issue where labels are concatenated without spaces,
open your chart's configuration panel and look for the "Label Type" option. Set
it to **"key_value_percent"** for readable labels like `Category: Value
(Percent)`, or choose **"template"** and enter a custom format such as `{name}:
{value} ({percent})` in the "Label Template" field. This will separate the
variable name, value, and percentage with spaces and punctuation, making the
chart much easier to read for end users. You can find more details about these
options in the [Pie chart control panel
documentation](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/Pie/controlPanel.tsx)
and see how the label formatting works in the [chart
code](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts).
If you still see formatting issues after adjusting these settings, it may be
due to a regression or bug introduced in 5.0, but most cases are resolved by
updating the label configuration as described above.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/54538406-c6bd-45ae-baa5-2c86ebf4c948?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35862)
GitHub link:
https://github.com/apache/superset/discussions/35862#discussioncomment-14796465
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]