Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(2 lines PR) Fix to make "show data labels" works #7363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yoshiokatsuneo
Copy link
Contributor

@yoshiokatsuneo yoshiokatsuneo commented Mar 6, 2025

What type of PR is this?

  • Bug Fix

Description

After upgraded plotly.js to version2.0, "show data labels" on bar chart does not works but data label is always show.
This happens because plotly.js's "textposition" default value was changed from "none" to "auto".

This PR fixes it by explicitly setting "textposition" to "none" or "inside".

How is this tested?

  • Manually

I confirmed that data labels is shown only when "show data labels" is checked.

image image

@yoshiokatsuneo yoshiokatsuneo marked this pull request as ready for review March 6, 2025 06:28
@yoshiokatsuneo yoshiokatsuneo force-pushed the fix/bar_chart_show_data_labels_3 branch from d849075 to 3a3fff1 Compare March 6, 2025 06:34
@yoshiokatsuneo yoshiokatsuneo force-pushed the fix/bar_chart_show_data_labels_3 branch from 3a3fff1 to 7c32e7c Compare March 6, 2025 08:53
@yoshiokatsuneo yoshiokatsuneo changed the title Fix to make "show data labels" works (one line PR) Fix to make "show data labels" works Mar 6, 2025
@yoshiokatsuneo yoshiokatsuneo changed the title (one line PR) Fix to make "show data labels" works Fix to make "show data labels" works Mar 6, 2025
@yoshiokatsuneo yoshiokatsuneo changed the title Fix to make "show data labels" works (2 lines PR) Fix to make "show data labels" works Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant