You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sadpandajoe (via GitHub)" <gi...@apache.org> on 2025/09/12 04:46:11 UTC

[PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

sadpandajoe opened a new pull request, #35112:
URL: https://github.com/apache/superset/pull/35112

   <!---
   Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/
   Example:
   fix(dashboard): load charts correctly
   -->
   
   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   Fixes #34822 reported that deck.gl chart features "disappeared" in Superset 6.0.0, specifically:
     - Legend visualization not appearing when expected
     - Users unable to configure categorical legends for Arc/Scatter charts
     - Charts migrated from 5.x showing empty data instead of legends
   
    **🔍 Root Cause Analysis**
   
   Investigation revealed three distinct bugs introduced during the 6.0 color control system overhaul:
   
   1. addColor() default case bug: Returns empty array for undefined color_scheme_type, breaking migrated charts
   2. Dimension control visibility bug: Categorical dimension selector hidden when color scheme ≠ categorical_palette
   3. Poor UX defaults: New charts default to "Fixed color" preventing legends from appearing
   
   **✅ Solution**
   
     Bug #1 - Backward Compatibility Fix
     - File: CategoricalDeckGLContainer.tsx:206-213
     - Change: Handle undefined/null color_scheme_type as categorical_palette for backward compatibility
     - Impact: Pre-6.0 migrated charts now work without user reconfiguration
   
     Bug #2 - UI Control Enhancement
     - File: utilities/Shared_DeckGL.tsx:490
     - Change: Make categorical dimension control always visible (visibility: () => true)
     - Impact: Users can configure categorical data regardless of color scheme selection
   
     Bug #3 - Better Defaults
     - File: layers/Arc/controlPanel.ts:101
     - Change: Default new Arc charts to categorical_palette instead of fixed_color
     - Impact: New charts show legends when appropriate without complex configuration
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   - 30 Unit Tests - Core function logic for getCategories() and addColor()
   - 11 Integration Tests - Complete legend workflows including positioning (tl/tr/bl/br)
   - Edge Case Coverage - undefined/null color_scheme_type, empty data, missing dimensions
   - Backward Compatibility Tests - Migration scenarios from 5.x
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3293079517

   closing in favor of https://github.com/apache/superset/pull/35142


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3287019546

   🎪 [Showtime](https://github.com/mistercrunch/superset-showtime) is building environment on [GHA](https://github.com/apache/superset/actions/runs/17687607510) for [9ca73bb](https://github.com/apache/superset/commit/9ca73bb)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3283651159

   @DamianPendrak there was a deck.gl bug for 6.0, and since you worked on it last thought I'd ping you in case if there were any business use cases i may have broken


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "DamianPendrak (via GitHub)" <gi...@apache.org>.
DamianPendrak commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3284810429

   Thanks for the ping. I don't understand the change with the legend available for fixed colors. Is there a use case? Or is it for backward compatibility?
   From the linked issue, I can see the legend is missing for the linear color scheme


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3287042376

   🎪 [Showtime](https://github.com/mistercrunch/superset-showtime) deployed environment on [GHA](https://github.com/apache/superset/actions/runs/17687607510) for [9ca73bb](https://github.com/apache/superset/commit/9ca73bb)
   
   • **Environment:** http://54.70.17.157:8080 (admin/admin)
   • **Lifetime:** 24h auto-cleanup
   • **Updates:** New commits create fresh environments automatically


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3283654752

   🎪 [Showtime](https://github.com/mistercrunch/superset-showtime) is building environment on [GHA](https://github.com/apache/superset/actions/runs/17664863522) for [b5dc2e6](https://github.com/apache/superset/commit/b5dc2e6)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on PR #35112:
URL: https://github.com/apache/superset/pull/35112#issuecomment-3286808593

   > Thanks for the ping. I don't understand the change with the legend available for fixed colors. Is there a use case? Or is it for backward compatibility? From the linked issue, I can see the legend is missing for the linear color scheme
   
   Yeah this should be for backwards compatibility. So this would hopefully add the legend back for whatever scheme is selected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix: deck.gl Arc and Scatter chart legend visibility issues [superset]

Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe closed pull request #35112: fix: deck.gl Arc and Scatter chart legend visibility issues
URL: https://github.com/apache/superset/pull/35112


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org