-
Notifications
You must be signed in to change notification settings - Fork 93
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
changed label setting to match 11.2.7 behavior #624
Conversation
Kudos, SonarCloud Quality Gate passed! |
Pull Request ReportHey there! I've analyzed the pull request and here's the report for you: Changes
Suggestions
Bugs
Improvements
if (axis instanceof CategoryAxis catAxis) {
for (Renderer renderer : getRenderers()) {
if (renderer.isUsingAxis(axis) && !renderer.getDatasets().isEmpty()) {
catAxis.updateCategories(renderer.getDatasets().get(0));
break;
}
}
} RatingI would rate the code a 7 out of 10. The code is generally readable and performs well. However, there are some areas that could be improved for better readability and maintainability. That's it for the report! Let me know if you need any further assistance. Cheers! |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #624 +/- ##
=========================================
Coverage 48.09% 48.09%
- Complexity 6213 6215 +2
=========================================
Files 374 374
Lines 38299 38288 -11
Branches 6110 6105 -5
=========================================
- Hits 18419 18416 -3
- Misses 18721 18725 +4
+ Partials 1159 1147 -12
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, looks good 👍
I double checked the automatic axis-label setting, and the 11.2.7 behavior was that each renderer tries to use the first dataset. Once the labels get set, a boolean state ensures that the labels do not get overwritten later.
This PR changes the behavior to match the 11.2.7 release.