dosubot[bot] commented on issue #37233:
URL: https://github.com/apache/superset/issues/37233#issuecomment-3765804455

   <!-- Greeting -->
   Hi @alex-poor! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   The deck.gl GeoJSON chart in Superset does support polygon styling with 
color and opacity, but these are controlled through the UI color pickers (like 
`fill_color_picker` and `stroke_color_picker`) rather than arbitrary properties 
in the GeoJSON object. The UI controls override any colors specified in the 
GeoJSON unless you set opacity to zero, in which case the chart will use the 
colors from the GeoJSON if they match expected property names like `fillColor` 
or `strokeColor` [see code 
reference](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/Geojson.tsx).
   
   If you add color/opacity parameters directly to your GeoJSON, they must use 
the correct property names and formats (e.g., `fillColor` as an RGBA array or 
hex string) to be recognized. Otherwise, the chart ignores them [see code 
reference](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/Geojson.tsx).
   
   There was a regression in recent versions where stroke color controls were 
missing, but this was fixed, and the same approach can be extended to GeoJSON 
charts [see issue discussion](https://github.com/apache/superset/issues/36326). 
The lack of visible color/opacity controls in the UI is not a design decision 
but rather a bug or regression that has been addressed.
   
   For large or overlapping polygons, you can increase usability by adjusting 
the fill and stroke color opacity sliders in the chart's control panel. If 
these controls are missing in your UI, you may be affected by the regression 
and should update to a version where the fix is applied.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/d314ca84-c8c3-4157-8333-6cd1960bd827?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20deck.gl%20GeoJSON%20chart%20in%20Superset%20does%20support%20polygon%20styling%20with%20color%20and%20opacity%2C%20but%20these%20are%20controlled%20through%20the%20UI%20color%20pickers%20%28like%20%60fill_color_picker%60%20and%20%60stroke_color_picker%60%29%20rather%20than%20arbitrary%20properties%20in%20the%20GeoJSON%20object.%20The%20UI%20controls%20override%20any%20colors%20specified%20in%20the%20GeoJSON%20unless%20you%20set%20opacity%20to%20zero%2C%20in%20which%20case%20the%20chart%20will%20use%20the%20colors%20from%20the%20GeoJSON%20if%20they%20match%20expected%20property%20names%20like%20%60fillColor%60%20or%20%60strokeColor%60%C2%A0%5Bsee%20code%20reference%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/plugins
 
/legacy-preset-chart-deckgl/src/layers/Geojson/Geojson.tsx%29.%0A%0AIf%20you%20add%20color/opacity%20parameters%20directly%20to%20your%20GeoJSON%2C%20they%20must%20use%20the%20correct%20property%20names%20and%20formats%20%28e.g.%2C%20%60fillColor%60%20as%20an%20RGBA%20array%20or%20hex%20string%29%20to%20be%20recognized.%20Otherwise%2C%20the%20chart%20ignores%20them%C2%A0%5Bsee%20code%20reference%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Geojson/Geojson.tsx%29.%0A%0AThere%20was%20a%20regression%20in%20recent%20versions%20where%20stroke%20color%20controls%20were%20missing%2C%20but%20this%20was%20fixed%2C%20and%20the%20same%20approach%20can%20be%20extended%20to%20GeoJSON%20charts%C2%A0%5Bsee%20issue%20discussion%5D%28https%3A//github.com/apache/superset/issues/36326%29.%20The%20lack%20of%20visible%20color/opacity%20controls%20in%20the%20UI%20is%20not%20a%20design%20decision%20but%20rather%20a%20bug%20or%20regre
 
ssion%20that%20has%20been%20addressed.%0A%0AFor%20large%20or%20overlapping%20polygons%2C%20you%20can%20increase%20usability%20by%20adjusting%20the%20fill%20and%20stroke%20color%20opacity%20sliders%20in%20the%20chart%27s%20control%20panel.%20If%20these%20controls%20are%20missing%20in%20your%20UI%2C%20you%20may%20be%20affected%20by%20the%20regression%20and%20should%20update%20to%20a%20version%20where%20the%20fix%20is%20applied.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37233)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to