python-visualization / python-visualization/folium
Multiple Vincent/Vega charts in a popup?
オープン
まだ誰も着手していません。
enhancement
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 2.3k
- 平均マージ
- 17時間 22分
- マージ済み PR(30日)
- 11
説明
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?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue内の2つの例から Popup.add_child を追跡し、popupの子要素がどのようにレンダリングされるかを調べます。1つのpopupで、1つ目または2つ目のチャートだけでなく、両方のVincent/Vegaチャートが確実に表示されれば作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, python
- 領域
- data-visualization, frontend
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100