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 want to store charts as JSON, exchange them with collaborators and then concatenate them.
However, attempting to concatenate the charts loaded from JSON/dict raises the following error:
I am trying to store charts as JSON, then load and concatenate them either horizontally or vertically.
Howeve, this raises the following error:
TypeError: Objects with 'config' attribute cannot be used within HConcatChart. Consider defining the config attribute in the HConcatChart object instead.
Here is a simple example to reproduce this behavior:
It seems the issue is cause by the "config", "$schema" and "datasets" field in the dictionary.
The only workaround I found was to remove those keys and then pass the data argument to the concatenation function:
However, this somewhat defeats the purpose because the shared Vega JSON is not self sufficient and depends on the availability of the data.
Is this behavior of hconcat/vconcat intended? I feel like this should be possible in Vega-Altair.
Thanks for this great package!
What would you like to happen instead?
No response
Which version of Altair are you using?
5.5.0
The text was updated successfully, but these errors were encountered:
What happened?
I want to store charts as JSON, exchange them with collaborators and then concatenate them.
However, attempting to concatenate the charts loaded from JSON/dict raises the following error:
I am trying to store charts as JSON, then load and concatenate them either horizontally or vertically.
Howeve, this raises the following error:
TypeError: Objects with 'config' attribute cannot be used within HConcatChart. Consider defining the config attribute in the HConcatChart object instead.
Here is a simple example to reproduce this behavior:
It seems the issue is cause by the
"config"
,"$schema"
and"datasets"
field in the dictionary.The only workaround I found was to remove those keys and then pass the
data
argument to the concatenation function:However, this somewhat defeats the purpose because the shared Vega JSON is not self sufficient and depends on the availability of the data.
Is this behavior of
hconcat
/vconcat
intended? I feel like this should be possible in Vega-Altair.Thanks for this great package!
What would you like to happen instead?
No response
Which version of Altair are you using?
5.5.0
The text was updated successfully, but these errors were encountered: