`fitbounds="locations"` parameter not working for `px.choropleth_map`
オープン
まだ誰も着手していません。
bug
P3
size: 1
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
The fitbounds parameter appear not to work when used in choropleth mapbox. The only way I found to pass it to the Figure object was to use the update_geos method.
The following is a sample of the code to show the parameter used:
fig = px.choropleth_mapbox(
df,
geojson=self.geojson,
featureidkey=self.featureidkey,
locations="location_code,
color=self.metric,
mapbox_style="carto-positron",
opacity=0.4
)
fig.update_geos(fitbounds="locations")
When calling fig.show, the plot opens to the (0,0) location in Gulf of Guinea.
Why the fitbounds parameter doesn't work on choropleth mapbox?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された px.choropleth_mapbox の例を再現し、fitbounds が choropleth_mapbox と update_geos でどのように処理されるかを確認します。Figure 生成のエントリポイントを追跡し、マップが (0,0) ではなく指定された位置を中心としていることを確認します。その動作に対する、焦点を絞ったリグレッションチェックを文書化してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 58/100