[BUG]: Getting strange choropleth map output when locationmode is set to geojson-id
@camdecoster 已經在處理了。
開始於 2026年3月11日。
- 主要語言
- JavaScript
- 星號
- 18.3k
- 分支
- 2k
- 平均合併
- 2 天 12 小時
- 30 天內合併 PR
- 28
描述
Description
I'm working on a choropleth map that features data at the US Metropolitan Statistical Area (MSA) level. This process involves (1) loading in simplified MSA-level GeoJSON data; (2) loading data into a Danfo.js DataFrame; and (3) rendering my map within Plotly.js. Because I'm using custom shapefiles here, I need to use geojson-id as my locationmode argument and a custom featureidkey ("properties.MSA") in order to link my shapefiles and data.
My map renders well when using choroplethmap, but I'd really like to get the map working using choropleth, as I'll then be able to display Alaska and Hawaii within the same window as the contiguous US. However, as shown in the screenshots, something is clearly not working right.
Screenshots/Video
Output when using choropleth to render the map:
Output when creating a tiled map via choroplethmap instead:
I also tried creating a state-level map via a separate set of GeoJSON outlines and JSON data, but this failed to work correctly as well:
Steps to reproduce
Here is a link to my script: https://codepen.io/kburchfielifs/pen/OPRNOMo
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。