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'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 chartm.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 chartm.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')
) )
The underlying issue that you currently can't add multiple children to a popup, only the last one added will be used. It would be good if we either fix that, or not make it fail silently.
Activity
dsunjka commentedon Dec 3, 2020
I am also interested - @robroc Did you come up with a solution in the meanwhile?
robroc commentedon Dec 3, 2020
@dsunjka I was never able to solve this. I ended up using a different chart type that encodes the data from two charts in one.
Conengmo commentedon Nov 29, 2022
The underlying issue that you currently can't add multiple children to a popup, only the last one added will be used. It would be good if we either fix that, or not make it fail silently.
Same question as #1387