-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spec using labelExpr and tickBand results in error (#73)
* Fix build instruction * Write out failed image when baseline doesn't exist * Add failing test that crashes with: Failed to deserialize text info: missing field `text` * Allow test to be missing in text width calculation treat as empty string and return zero in this case.
- Loading branch information
Showing
7 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.54 KB
vl-convert-rs/tests/vl-specs/expected/v5_8/no_text_in_font_metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
vl-convert-rs/tests/vl-specs/expected/v5_8/no_text_in_font_metrics.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions
30
vl-convert-rs/tests/vl-specs/no_text_in_font_metrics.vl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://vega.github.io/schema/vega-lite/v5.9.3.json", | ||
"description": "https://github.com/vega/vl-convert/issues/72", | ||
"data": { | ||
"values": [ | ||
{ | ||
"column_name": "Prior", | ||
"previous_sum": 1.2, | ||
"log2_bayes_factor": 2.4, | ||
"value": "inal score" | ||
} | ||
] | ||
}, | ||
"layer": [ | ||
{ | ||
"mark": {"type": "bar", "width": 60}, | ||
"encoding": { | ||
"x": { | ||
"type": "nominal", | ||
"axis": { | ||
"labelExpr": "datum.value == 'Prior' || datum.value == 'Final score' ? '' : datum.value", | ||
"tickBand": "extent" | ||
}, | ||
"field": "column_name" | ||
}, | ||
"y": {"type": "quantitative", "field": "previous_sum"} | ||
} | ||
} | ||
] | ||
} |