You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "msyavuz (via GitHub)" <gi...@apache.org> on 2025/07/30 12:02:17 UTC

[I] Y-axis is partially visible in horizontal bar charts when using negative metrics [superset]

msyavuz opened a new issue, #34401:
URL: https://github.com/apache/superset/issues/34401

   ### Bug description
   
   If you create a bar chart using a metric with negative values and the horizontal view, once you enable the “Show value” feature in the Customize tab and set the Stacked style to stacked, the displayed values are cut in the middle, showing partially the number.
   
   1. Create a Bar chart using a metric with negative values
   You can use the sql statement below in the SqlLab to create a virtual dataset that contains negative values:
   ```
   SELECT
     *,
     sales * -1 AS sales_negative
   FROM
     cleaned_sales_data
   ```
    
   2. Select Horizontal view
   3. Enable the Show value feature in the Customize tab and set the Stacked Style to stacked
   
   ### Screenshots/recordings
   
   <img width="1432" height="916" alt="Image" src="https://github.com/user-attachments/assets/e18b19dc-be53-4941-8955-6742cf9c5f86" />
   
   <img width="1427" height="911" alt="Image" src="https://github.com/user-attachments/assets/0f564f74-7f75-4aa2-8087-fb8edec01a8b" />
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Y-axis is partially visible in horizontal bar charts when using negative metrics [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke closed issue #34401: Y-axis is partially visible in horizontal bar charts when using negative metrics
URL: https://github.com/apache/superset/issues/34401


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Y-axis is partially visible in horizontal bar charts when using negative metrics [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #34401:
URL: https://github.com/apache/superset/issues/34401#issuecomment-3136001538

   <!-- Answer -->
   This is a known rendering issue in Superset's ECharts-based bar charts: when using horizontal stacked bars with negative values and "Show value" enabled, value labels can be clipped or only partially visible. The root cause is that label positioning for negative values is only adjusted for non-stacked bars—stacked bars keep the default label position ("right" for horizontal), which can result in clipping for negative values. There is currently no user-facing option to change label position for stacked bars, and no recent PRs directly address this specific bug. Addressing it would require extending the label position logic to stacked bars or exposing a label position option in the UI. You can track related discussions and feature work here: [discussion on label positioning](https://github.com/apache/superset/discussions/33135) and [code reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-echarts/src/Ti
 meseries/transformers.ts).
   
   
   <!-- 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/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/cec0c971-841b-4071-bc41-73699f6645ba?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34401)


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Y-axis is partially visible in horizontal bar charts when using negative metrics [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #34401:
URL: https://github.com/apache/superset/issues/34401#issuecomment-3791331263

   Closed by #36989.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Y-axis is partially visible in horizontal bar charts when using negative metrics [superset]

Posted by "Yummylibra (via GitHub)" <gi...@apache.org>.
Yummylibra commented on issue #34401:
URL: https://github.com/apache/superset/issues/34401#issuecomment-3353782345

   Cat-tim(2025 fall CSCD01) is planning to solve this issue


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org