dosubot[bot] commented on issue #36008: URL: https://github.com/apache/superset/issues/36008#issuecomment-3492709867
<!-- Greeting --> Hi @bogdantica! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> This is a known issue in Superset horizontal bar charts: value labels at the right edge can get truncated when bars approach the chart's maximum width, due to insufficient right margin or padding. There isn't a user-facing setting to control label placement or margin for these charts in version 5.0, and label position defaults to "right"—so truncation is unavoidable in some layouts. This limitation is tracked in issues like [#25131](https://github.com/apache/superset/issues/25131) and [#35554](https://github.com/apache/superset/issues/35554), and affects both ECharts and NVD3 chart types. Workarounds include resizing the chart/container to provide more space, or modifying the source code to set label position to "inside" instead of "right" (which requires a custom build) [discussion](https://github.com/apache/superset/discussions/33135). A feature for customizable label positions (Inside, Top, Bottom, Left, Right) has been prototyped in a fork, but is not yet merged into mainline Superset. For developers, the relevant margin and label logic for NVD3 charts is in `superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js` and `utils.js`—adjusting the right margin or label positioning there can help prevent clipping, but this requires code changes. For now, ensuring enough space in the chart area or relying on tooltips is the most reliable way to avoid label truncation. <!-- 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/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/364b5485-465b-4b14-ab10-cf1f04a58393?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](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/issues/36008) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
