-
Notifications
You must be signed in to change notification settings - Fork 328
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
Enhance Distribution Diagramm #1803
Conversation
…m/jplag/JPlag into report-viewer/rework-distribution
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.
I have been testing this PR with quite a few datasets, here are my initial thoughts:
- The animation when swapping to a different distribution granularity was confusing at the beginning, and still is when trying to compare two different granularities. I assume this is nothing we implemented on purpose and is rather part of an API, right?
- At finer granularities, the numbers disappear. I notice that I swap back to one where I can see the numbers. This is especially the case when the lower percentage submissions are so many, that the bars for the higher percentage one are barely visible. If we can show the numbers for more or all granularities, this would be better.
- Generally, I think we can stick to 4 or so granularities, e.g. 10, 20, 25, and 50. But I am not so sure which specific granularities are ideal.
- For now, we can merge this PR, and the granularities can be adjusted in a later PR (however, before the next release).
This is the default, but can be disabled (would also make the e2e tests faster)
This was done on purpose, since numbers would overlap and not be readable, but I can disable them for every second bar or something depending on the granularity. Your thoughts on that @tsaglam?
I would suggest 10, 25,50, 100 since 20 and 25 are pretty close together |
I think I would prefer that.
Can we scale the numbers, or is that unnecessarily complicated? Every second is not that helpful, as there is not necessarily a relation between the number of comparisons of neighboring buckets
Sounds good, we can always adjust if we feel we need different granularities. |
Removing the animations made the e2e test for the distribution diagram very flaky, especially on WebKit. |
Then I would say we keep the animations for now, and turn this into an issue. We can disable animations whenever we find a suitable solution for the tests. |
Ready to merge, @Kr0nox? |
yes. should I add the animation issue to a new one, or the already existing one about the distribution diagram? |
Both are fine for me, whatever you prefer. |
Quality Gate passed for 'JPlag Report Viewer'Issues Measures |
I managed to find the issue in the tests and diasabled the animations |
This PR improves the distribution diagram by
Addresses parts of #1606