Skip to content

Conversation

@dberenbaum
Copy link
Contributor

@dberenbaum dberenbaum commented Oct 16, 2023

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

"facet": {"field": "rev", "type": "nominal"},
"params": [
{
"name": "toggleText",
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor Author

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-commenter
Copy link

codecov-commenter commented Oct 17, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
src/dvc_render/vega_templates.py 94.26% <ø> (ø)

📢 Thoughts on this report? Let us know!.

@mattseddon
Copy link
Contributor

@dberenbaum should we release this now?

@dberenbaum
Copy link
Contributor Author

Thanks @mattseddon. Forgot about this one. Merging now.

@dberenbaum dberenbaum merged commit 5280aa2 into main Nov 6, 2023
@dberenbaum dberenbaum deleted the confusion-text branch November 6, 2023 22:55
@mattseddon
Copy link
Contributor

Quick question, any reason this wasn't applied to the NormalizedConfusionTemplate?

@dberenbaum
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants