-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Bar Chart remove x if y is 0 #2747
Comments
@MathiasVang I don't understand what you mean by I see the 2nd column from the left with 55,55 kr. That shows data to me. Are you talking about the 2nd column from the right? |
@seenoevo That was a mistake. I am talking about the 2nd column from the the right. |
@MathiasVang sorry for the late reply In playing around with your issue, I haven't found a way to shift x-axis data to left by one if there is an empty The Therefore you can't do something like this:
This will produce a
The only way I found to remedy this is that you have to either update your array or store it in a new array with the removed data element, then pass that into This way, when you call |
@seenoevo Thank you for the thorough response! I used your suggestion in the end of your post and broke out of the loop if the value was 0. I am closing this issue. |
I have been working with the framework quite a bit, but the bar chart with actual numbers in them are not positioned as I want them because some data might be "0". Is it possible to ignore these values when rendering the chart?
Screenshot:
The column 2nd from the left is the one with "0" data in this case.
The text was updated successfully, but these errors were encountered: