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
Table Panel: Add ability to use text color for value or hide value in gauge cell #61477
Conversation
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.
Works great! I left some comments regarding code changes / nits.
@mdvictor think I got all of the above resolved. Would appreciate another look! 🙏 |
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.
LGTM
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.
OK, i've fixed the validation errors on devenv. Here's what i found.
For devenv/dev-dashboards/panel-table/table_tests_new.json
, there were two issues, fixed in this commit. For devenv/dev-dashboards/panel-bargauge/panel_tests_bar_gauge.json
, some fixes in this commit. I've made inline comments discussing each change. Pretty much all of them merit follow-ups.
devenv/dev-dashboards/panel-bargauge/panel_tests_bar_gauge.json
Outdated
Show resolved
Hide resolved
… gauge cell (#61477) * BarGauge: New value options * Fix typings for cell options, add new value mode option for bar gauge cells * Add BarGauge panel option, tests, and update test dashboard * Updated * Added default * Goodbye trusty console.log * Update * Merge changes from main * Update docs * Add valuemode doc changes * Update gdev dashboard * Update valueMode symbol name to valueDisplayMode * Use Enums as Opposed to literals, don't calculate values when hidden * Remove double import * Fix tests * One more test fix * Remove erroneous targets field, fix type of maxDataPoints * Strip nulls and add index field to Thresholds * Gen cue * remove bad targets again * Fixes --------- Co-authored-by: Kyle Cunningham <kyle@codeincarnate.com> Co-authored-by: sam boyer <sdboyer@grafana.com>
@codeincarnate great! |
So now that we have cell options we can add more options to specific cell modes.
This option is something I have been wanting to add for ages (and @ryantxu as well)
Open question
Todo:
Another value mode option we can explore in the future would be "inside" where the value is shown inside the bar
Fixes #45442, #40925