mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
plots: set default x label
This commit is contained in:
committed by
David de la Iglesia Castro
parent
8e5226ece0
commit
61a02e6f56
@@ -181,6 +181,8 @@ class VegaConverter(Converter):
|
||||
fields = {field for _, field in _file_field(x)}
|
||||
if len(fields) == 1:
|
||||
x_label = first(fields)
|
||||
else:
|
||||
x_label = "x"
|
||||
else:
|
||||
x_label = INDEX_FIELD
|
||||
return x_label
|
||||
|
||||
Reference in New Issue
Block a user