-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Label of Last Bar in CategoryChart Not Visible #707
Comments
Thanks, I'll check it out soon hopefully. If you want, please create a PR with the fix. |
+1, running into this one, too. Interestingly it doesn't happen all the time, but it does happen if I set the series colors on the |
@mindlessolipsist For me, this is appearing whether or not I set the series colors on the @timmolter Is there any update on this issue? |
When creating a CategoryChart with bar styling and visible labels, the label of the last bar in the series is not visible. This is a new bug introduced in the latest release of the library. The following code will demonstrate the issue:
I have looked into the issue myself and the error occurs because the final bar in the series is drawn twice, with the second rendering overwriting the label. This extra rendering occurs due to a call to closePath on line 510 of PlotContent_Category_Bar.java that should not occur. I can fix this issue for the above example by setting 'path = null;' on line 312 following the first rendering of the bar. I am not sure if this bug occurs in other permutations of the CategoryChart. If so, my fix likely does not address those bugs. I hope this helps. Thanks for the hard work on this library.
The text was updated successfully, but these errors were encountered: