python-visualization / python-visualization/folium

Multiple Vincent/Vega charts in a popup?

オープン
#1,245 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。