在 altair 中下载选定的数据
Download selected data in altair
我有一个启用了多项选择的 altair
图,例如 this。有没有办法在 altair
之外传递选择?我想制作一个按钮,让用户只下载选定的数据。
否,目前无法访问 Python 中的选定数据。通过一些工作,您可以使用 Vega API, but I'm not aware of any example of this, and related project issues remain open: e.g. vega/vega-lite#2790, vega/vega-lite#1830.
从 javascript 开始
您可以为此目的使用 streamlit 库。这里是 link 关于数据探索应用 https://streamlit.io/docs/tutorial/create_a_data_explorer_app.html 的文档。
我有一个启用了多项选择的 altair
图,例如 this。有没有办法在 altair
之外传递选择?我想制作一个按钮,让用户只下载选定的数据。
否,目前无法访问 Python 中的选定数据。通过一些工作,您可以使用 Vega API, but I'm not aware of any example of this, and related project issues remain open: e.g. vega/vega-lite#2790, vega/vega-lite#1830.
从 javascript 开始您可以为此目的使用 streamlit 库。这里是 link 关于数据探索应用 https://streamlit.io/docs/tutorial/create_a_data_explorer_app.html 的文档。