Multiple Vincent/Vega charts in a popup?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, python
调研方向
首先从 issue 中的两个示例入手,跟踪 Popup.add_child,并检查 popup 子项是如何渲染的。当单个 popup 能够可靠地同时显示两个 Vincent/Vega 图表,而不只是第一个或第二个图表时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
描述
I'm trying to add two Vincent bar charts in a popup using Vega, one on top of the other. The two methods below are not working:
# Adding both charts to add_child: This only renders the first chart
m.add_child( folium.CircleMarker(
location = [df['latitude'], df['longitude']],
popup = folium.Popup(max_width = 450).add_child(chart1, chart2)
))
# Method-chaining: This only renders the second chart
m.add_child( folium.CircleMarker(
location = [df['latitude'], df['longitude']],
popup = folium.Popup(max_width = 450).add_child(chart1, name = 'c1').add_child(chart2, name = 'c2')
) )
Is there a way to accomplish this?
- 主要语言
- Python
- 星标
- 7.4k
- 派生
- 2.3k
- 平均合并
- 17 小时 22 分钟
- 30 天内合并 PR
- 11
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-visualization/folium 的其他 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
python-visualization/folium#2092 · 5 条评论 ·
-
难度 3/5 1-2 天 新手友好度 67/100
python-visualization/folium#2278 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
python-visualization/folium#2259 ·
-
Map output from OSM returns blocked tiles, due to defective request or not following referer-policy 未关闭
难度 3/5 1-2 天 新手友好度 55/100
python-visualization/folium#2236 · 5 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 10/100
python-visualization/folium#2219 · 2 条评论 ·
查看 python-visualization/folium 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
canonical/paas-charm#368 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
tech debt
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·