Drill/Slice Multiple Charts in Streamlit Altair #3284
-
Hi guys, currently I create an interactive dashboard using altair chart and I want to make a filtering between charts. From any references that I found is to use the selection points, add params, and transform filter. From all references that I found in the internet, the charts filter works fine if we combine the charts into one. But I don't want to combine, just want to create separate columns because I need the full screen function for each chart. Here is the code. This code will produce an error like "Unrecognize signal params". Does anyone have any solution for this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Thank you for asking. If you have different components with each an independent Altair object, but still want these components to be interconnected then they will have to exchange states/signals and respond to callbacks. With the Altair JupyterChart functionality introduced in Altair 5.1 we are aiming to introduce support for this type of functionality. See https://altair-viz.github.io/user_guide/jupyter_chart.html, you probably can get a long way, but it also might be that you hit the current limitation as is mentioned on that same page too (especially setting of selections from the outside). If you succeed, then it would be great that you document it as well somewhere (here is fine!), even if it is a a very simple example (in fact more favourable). Happy to try to answer more questions if needed! |
Beta Was this translation helpful? Give feedback.
Capturing selection events and making them available in Python requires support from the notebook/dashboard system that's displaying the chart. For streamlit, I suggest tracking these issues:
Or opening a new feature request with the Streamlit project. Unfortunately, there's nothing we can do from the Altair side to support this in Streamlit. Hope that makes sense.