-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Counter visualization enhancements #4392
Conversation
- added Sum/Min/Max - changed visualisation -> visualization for consistence with the rest
* Counter enhancements * Code style * Allow to deselect column; don't migrate options for new visualizations; minor fixes * Secondary values editor: disable input when secondary value not available * Use row data (if available) when formatting values and tooltips * Show secondary value controls only visibility - don't disable inputs * Mve round baces around secondary value to format templates * Fix options migration bug * Render counter only if some data available * Ability to disable secondary value; place Show Secondary Value checkbox after other options * Format hints * Fix options migration bug * Tests: getCounterData * Tests: Editor * Code style * Tests: Renderer * Tests: Renderer (unit-tests) * Fix unit tests hanging on CI * CR1
This PR is now holding all recent updates (great part of them made by @kravets-levko's efforts) to the Counter Visualization 😬:
@arikfr I noticed the existence of #2942, if you think that's a quick win and that's still relevant it should be a good time to do it. |
@gabrieldutra , thanks for the PR! We've updated a lot of things now that we're Community-driven so - if you're still interested in getting this merged - would you mind rebasing off master to re-run the CI, as well as updating merge conflicts? We're trying to clean up our PR todo list, so if you're not interested, that's fine - we'll close the PR in about a week if we don't hear back. If you're interested in reopening the PR afterwards, we would also very much welcome that. |
What type of PR is this? (check all applicable)
Description
This PR will allow more aggregation types for the Counter Visualization.
So far I just started exploring it, I wanted to have the types definition centered in one place and also it makes sense to merge the existing
countRows
. Currently I centered that logic in utils because it's where the current counter logic is, but I'll later see a better place to that.One thing that I'll need to see is what's the best way of handling backward compatibility for the
countRows
, I was thinking a migration as it would just define Types for existing counters, though I haven't done a migration on my own yet so just confirming that 😅.To do:
Related Tickets & Documents
Closes #4366
Closes #2558
Mobile & Desktop Screenshots/Recordings (if there are UI changes)