-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
refactor(barchart): replace remove_invisible_groups_and_bars by group… #544
Conversation
Codecov Report
@@ Coverage Diff @@
## main #544 +/- ##
==========================================
- Coverage 89.65% 89.51% -0.15%
==========================================
Files 41 41
Lines 11437 11451 +14
==========================================
- Hits 10254 10250 -4
- Misses 1183 1201 +18
|
2d9e609
to
5b901e3
Compare
also I noticed, that I should replace the removed unit tests in the previous commit. (I almost made some breaking changes) |
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.
Generally LGTM - with a couple of quick questions
5b901e3
to
c8dd9cc
Compare
…_ticks group_ticks calculates the visible bar length in ticks. (A cell contains 8 ticks). It is used for 2 purposes: 1. to get the bar length in ticks for rendering 2. since it delivers only the values of the visible bars, If we zip these values with the groups and bars, then we will filter out the invisible groups and bars Signed-off-by: Ben Fekih, Hichem <[email protected]>
c8dd9cc
to
c3b372f
Compare
Thanks for the PR |
Replace `remove_invisible_groups_and_bars` with `group_ticks` `group_ticks` calculates the visible bar length in ticks. (A cell contains 8 ticks). It is used for 2 purposes: 1. to get the bar length in ticks for rendering 2. since it delivers only the values of the visible bars, If we zip these values with the groups and bars, then we will filter out the invisible groups and bars Signed-off-by: Ben Fekih, Hichem <[email protected]>
It is maybe still not what you expect. but maybe it is a small step. (At least the internal state is not changed)
remove_invisible_groups_and_bars()
is replaced bygroup_ticks()
, which calculates the visible bar length in ticks. (A cell contains 8 ticks).It is used for 2 purposes:
Since this patch, doesn't add any new feature, it can be closed, if it doesn't add any value regarding readability.