resolve_scale
on individual chart errors with unhelpful error message when faceted or layered
#3502
Labels
resolve_scale
on individual chart errors with unhelpful error message when faceted or layered
#3502
What happened?
When a single chart uses
resolve_scale
, the chart can be displayed on its own or together in aconcat
, but not inside alayer
or with.facet
. The error message is not helpful in the latter two cases:And with facet:
In both cases, underlying specs works in the Vega editor (with slightly different warnings): Faceted chart and Layered Chart
While it doesn't make sense that
resolve
works for some compound charts but not for others, a minimal fix in Altair would be to improve the error message, so that it is clear for users what is going awry. Something similar to what we have for faceted charts that are then layered, e.g.:What would you like to happen instead?
The Vega-Lite code could be updated to allow/disallow
resolve
for all compound chart types consistently. Ideally it would generate an error when used on single charts, since it does not have any effect when there are not multiple charts to resolve between.Which version of Altair are you using?
main
The text was updated successfully, but these errors were encountered: