I want to keep pace with the new features in the latest releases of Streamlit, but I find myself stuck on 1.9.x as there appears to be Vega compilation differences for one of my Altair charts that I cannot resolve.
I have made no Python code changes but the presentation is changed and much less useful. I’ve included screenshots below of the issue.
1.9.x
1.11.1
Looking at the compiled Vega there are new impute and stack transforms which weren’t there before which I believe are causing the issue.
1.9.x
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
...
"data": [
{"name": "140138747639792"},
{
"name": "data_0",
"source": "140138747639792",
"transform": [
{"type": "formula", "expr": "toDate(datum[\"Date\"])", "as": "Date"}
]
}
],
...
1.11.1
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
...
"data": [
{"name": "140350643578688"},
{
"name": "data_0",
"source": "140350643578688",
"transform": [
{"type": "formula", "expr": "toDate(datum[\"Date\"])", "as": "Date"},
{
"type": "impute",
"field": "Value",
"groupby": [],
"key": "Date",
"method": "value",
"value": 0
},
{
"type": "stack",
"groupby": ["Date"],
"field": "Value",
"sort": {"field": [], "order": []},
"as": ["Value_start", "Value_end"],
"offset": "zero"
}
]
}
],
...
I’m wondering where these extra transform steps are coming from and whether I can take steps to remove them, so far I have been unsuccessful.