Bug reportNov 25, 2026· 0:23· 5 views
Plotly.js: 'europe' scope choropleth shows bgcolor instead of landcolor for non-European countries (Morocco visible as background, Turkey not drawn)
0:23 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumGeo trace rendering: scope 'europe' subunit/land topojson clipping. Non-European land features and locations such as TUR and MAR appear to be excluded from the europe scope dataset.
os: macOSdpr: 1locale: en-USbrowser: Chromium 151.0.7922.34library: Plotly.js v1.58.5 (cdn.plot.ly/plotly-latest.min.js)timezone: Europe/Berlinviewport: 1280x720
Repro steps
- 1.Load plotly.js v1.58.5 from cdn.plot.ly/plotly-latest.min.js.
- 2.Render a control choropleth with geo scope 'world', locations FRA(1), TUR(2), MAR(3), landcolor lightgreen, oceancolor lightblue.
- 3.Render the same choropleth with geo scope 'europe' and bgcolor magenta.
- 4.Compare Morocco and Turkey in both plots after the europe plot draws.
Expected
With scope 'europe', land outside the European subunits (for example North Africa and Morocco) is filled with landcolor (lightgreen). Turkey (value 2) is drawn with its choropleth color, as it is in the 'world' scope control.
Actual
With scope 'europe', North Africa including Morocco and the areas past the European land outline are filled with the magenta bgcolor instead of landcolor. The Turkey choropleth is not drawn at all.
Evidence
visualControl (scope 'world') works: FRA is light gray, TUR is orange, MAR is dark red. Surrounding land is lightgreen and the ocean is lightblue.
visualThe europe-scope plot title and colorbar render, but the map area is still blank.
visualIn the europe-scope map, Morocco and North Africa show magenta bgcolor instead of lightgreen landcolor. Magenta also fills areas beyond the European outline.
visualTurkey has no choropleth fill in the europe-scope map, while it renders orange in the world-scope control.
visualThe europe-scope rendering does not change through the end of the recording.
consoleError: plotly-latest.min.js is v1.58.5 (end of v1.x line) and is no longer the latest release.
consoleWarning: parser-blocking cross-site script plotly-latest.min.js invoked via document.write.
Issue markdown (copy-paste ready)
## Summary With `geo.scope: 'europe'`, land outside the European subunits (for example Morocco) is filled with `bgcolor` instead of `landcolor`. The Turkey (TUR) choropleth location is not drawn. The same data with `scope: 'world'` renders correctly. ## Environment - Plotly.js v1.58.5 (cdn.plot.ly/plotly-latest.min.js) - Chromium 151.0.7922.34, macOS, 1280x720, dpr 1 ## Steps to reproduce 1. Load plotly.js v1.58.5 (0s). 2. Plot a choropleth with FRA(1), TUR(2), MAR(3), landcolor lightgreen, oceancolor lightblue, `scope: 'world'` (1s). 3. Plot the same data with `scope: 'europe'` and bgcolor magenta (7s). 4. Compare the two plots (9s). ## Expected Non-European land such as Morocco and North Africa uses landcolor (lightgreen). Turkey is drawn with its choropleth color, as in the world-scope control. ## Actual - North Africa and Morocco are magenta (bgcolor) in the europe-scope map (9s). - Turkey has no choropleth fill (9s to 21s). ## Control The `scope: 'world'` plot renders FRA light gray, TUR orange and MAR dark red, with lightgreen land and lightblue ocean (1s). This works correctly. ## Console - Error at 0s: plotly-latest.min.js is v1.58.5 and no longer the latest release. - Warning at 0s: parser-blocking cross-site script invoked via document.write. ## Suggested area Geo scope 'europe' land/subunit topojson handling. Non-European features and locations appear to be dropped. *Recorded with SceneRecap.*
This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →