apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.97k stars 13.94k forks source link

Formula Annotation Displays Incorrectly on Horizontal Bar Chart #30877

Open yousoph opened 2 weeks ago

yousoph commented 2 weeks ago

Bug description

When adding a formula-type annotation to a horizontal bar chart, the annotation does not display as expected. Instead of showing a vertical line to mark a value on the x-axis, the annotation appears as an additional category on the y-axis, which misleads the user and distorts the chart’s layout.

How to reproduce the bug

  1. Create a horizontal bar chart.
  2. Add a formula-type annotation to the chart.

image

  1. Observe the annotation’s display behavior on the horizontal bar chart.

Expected results

The annotation should display as a vertical line across the chart, marking the relevant value on the x-axis, similar to how it works with vertical bar charts.

Actual results

The annotation doesn’t appear as a vertical line.

image

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

geido commented 5 days ago

🎉 Preset Bounty Available: $150 USD 🎉

To claim this bounty, please carefully follow the steps below.


📋 Steps to Participate

  1. Review Guidelines:
    Read through the Preset Bounty Program Contribution Guide for complete details on bounty requirements.

  2. Show Your Interest:
    Complete the Preset Bounty Program Survey and comment this issue to express your interest.

  3. Join the Slack Channel:
    After completing the survey, you’ll receive an invitation to the dedicated Apache Superset Slack channel.

  4. Get Assigned:
    To officially start, ensure a Bounty Program Manager has assigned you to this issue.

  5. Submit Your Solution:
    When ready, submit your solution with the Fixes #{issue_number} notation in your Pull Request description.

  6. Claim Your Bounty:
    Sign up at GitPay.me and submit your solution via: https://gitpay.me/#/task/979


💡 Additional Notes

Good luck, and happy coding! 🎉

DamianPendrak commented 5 days ago

Hi, I am interested in working on this