You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using altair==5.5.0, vega==5.31.0, vega-embed==6.29.0, and vega-lite==5.23.0 to embed an altair plot into a website. However, I get the following error in the browser console: Error: Invalid field type "undefined". This happens whenever I have x2 or y2 encodings in the plot.
As an example, the needed json that I get with the plot:
I think that x2 would need to include the type of x1 in the json. I understand that the definition of X2 does not need type since it should be inferred from the definition of X, but the serialization might export it from there.
Have you considered any alternative solutions?
I have manually defined the type: quantitative for x2 in the json, and the plot now shows correctly. But I think this patch is far from ideal.
The text was updated successfully, but these errors were encountered:
What is your suggestion?
I am using
altair==5.5.0
,vega==5.31.0
,vega-embed==6.29.0
, andvega-lite==5.23.0
to embed an altair plot into a website. However, I get the following error in the browser console:Error: Invalid field type "undefined"
. This happens whenever I havex2
ory2
encodings in the plot.As an example, the needed json that I get with the plot:
is
I think that
x2
would need to include thetype
ofx1
in the json. I understand that the definition of X2 does not need type since it should be inferred from the definition of X, but the serialization might export it from there.Have you considered any alternative solutions?
I have manually defined the
type: quantitative
forx2
in the json, and the plot now shows correctly. But I think this patch is far from ideal.The text was updated successfully, but these errors were encountered: