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

Bug in Bar plot labels for 0 values #30934

Open
janaperedni opened this issue Nov 15, 2024 · 2 comments
Open

Bug in Bar plot labels for 0 values #30934

janaperedni opened this issue Nov 15, 2024 · 2 comments
Labels
viz:charts:bar Related to the Bar chart

Comments

@janaperedni
Copy link

janaperedni commented Nov 15, 2024

Screenshot

image
image

Description

Hi! I think I found a bug in bar plot visualization for 0 values. So as you can see from my screenshots, when you navigate to a certain bar it displays the dimensions' value, but it doesn't for the ones with 0 value although it exists in the underlying dataset. I couldn't find how to enable it therefore I consider it a bug.

Design input

No design input needed

Copy link

dosubot bot commented Nov 15, 2024

Hello, @janaperedni! I'm here to help you with any bugs, questions, or contributions. Let's take a look at the issue you've encountered.

The issue you're experiencing with bar plot labels not displaying for zero values might be related to the configuration setting showBarValue. If this property is set to true, labels for bar values, including zero values, should be displayed. You might want to check if this setting is enabled in your configuration [1].

Additionally, the drawBarValues function, which is responsible for rendering labels, does not have an explicit condition to prevent labels for zero values. However, if the number formatter used in this function suppresses zero values, that could be the reason for the labels not appearing [2].

If the issue persists, you may need to investigate further into the number formatting logic or any CSS styles that might affect the visibility of these labels.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the viz:charts:bar Related to the Bar chart label Nov 15, 2024
@janaperedni
Copy link
Author

janaperedni commented Nov 15, 2024

@dosu , showBarValue is enabled to True

ALso the label I am talking about is a dimension label. The x-axis label works for zeros as well, but the dimension one is off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
viz:charts:bar Related to the Bar chart
Projects
None yet
Development

No branches or pull requests

1 participant