-
Notifications
You must be signed in to change notification settings - Fork 5
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
toggle confusion matrix text #146
Conversation
fc0ee0a
to
9836502
Compare
9836502
to
fdaab74
Compare
src/dvc_render/vega_templates.py
Outdated
@@ -205,6 +205,12 @@ class ConfusionTemplate(Template): | |||
"data": {"values": Template.anchor("data")}, | |||
"title": Template.anchor("title"), | |||
"facet": {"field": "rev", "type": "nominal"}, | |||
"params": [ | |||
{ | |||
"name": "toggleText", |
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.
[Q] Could we change this to be a single word like "values" to match "smooth" from the smooth/linear template?
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.
or showValues
... unsure, just suggestions
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.
Yeah, I'll go with showValues
. I don't like it either but couldn't find a way to have a nicely formatted name here.
Codecov ReportAll modified lines are covered by tests ✅
📢 Thoughts on this report? Let us know!. |
@dberenbaum should we release this now? |
Thanks @mattseddon. Forgot about this one. Merging now. |
Quick question, any reason this wasn't applied to the |
I can't remember off the top of my head. I would check if the floats for the normalized template look okay, but otherwise I don't see a reason not to add it there. |
Closes:
After looking into this briefly, it was less work and more useful to add a toggle to turn text on or off.
Demo:
Screen.Recording.2023-10-16.at.4.05.57.PM.mov