We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e04c5de commit 5280aa2Copy full SHA for 5280aa2
src/dvc_render/vega_templates.py
@@ -205,6 +205,12 @@ class ConfusionTemplate(Template):
205
"data": {"values": Template.anchor("data")},
206
"title": Template.anchor("title"),
207
"facet": {"field": "rev", "type": "nominal"},
208
+ "params": [
209
+ {
210
+ "name": "showValues",
211
+ "bind": {"input": "checkbox"},
212
+ },
213
+ ],
214
"spec": {
215
"transform": [
216
{
@@ -294,6 +300,13 @@ class ConfusionTemplate(Template):
294
300
295
301
"mark": "text",
296
302
"encoding": {
303
+ "text": {
304
+ "condition": {
305
+ "param": "showValues",
306
+ "field": "xy_count",
307
+ "type": "quantitative",
308
309
297
310
"color": {
298
311
"condition": {
299
312
"test": "datum.percent_of_max > 0.5",
0 commit comments