Skip to content

Error when trying to convert waterfall chart to png with vl-convert-python #1044

Answered by RobinL
RobinL asked this question in Q&A
Discussion options

You must be logged in to vote

This appears to be an bug somewhere in the vl_convert package since the spec does not produce an error in the vega editor.

I've raised an issue against vl-convert-python so hopefully this will be fixed (or they'll let me know if we're doing something wrong in Splink)

Haven't read this fully, but this conversation seems related.

It seems the problem is with the specific line

"labelExpr": "datum.value == 'Prior' || datum.value == 'Final score' ? '' : datum.value"

which comes from this line of the template spec.

By removing this line from the spec, the chart will render correctly:

The line is at:
spec.layer[0].layer[1].encoding.x.axis.labelExpr

So to write out the chart we can run:

(Splink …

Replies: 1 comment 1 reply

Comment options

RobinL
Feb 12, 2023
Maintainer Author

You must be logged in to vote
1 reply
@RobinL
Comment options

RobinL Feb 12, 2023
Maintainer Author

Answer selected by RobinL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant