dosubot[bot] commented on issue #30570:
URL: https://github.com/apache/superset/issues/30570#issuecomment-2404613452
<!-- Greeting -->
Hey @kyun99, I'm here to assist you with any bugs, questions, or
contributions you have. Let's work on resolving the issue together!
<!-- Answer -->
To resolve the issue with the stroke width not updating in Deck.gl's arc
chart, ensure the following:
1. **Check `fd.stroke_width`:** Verify that `fd.stroke_width` is correctly
set in the form data. It should not be `undefined` or `null`. The `strokeWidth`
is set using `fd.stroke_width` in the `ArcLayer`:
```tsx
strokeWidth: fd.stroke_width ? fd.stroke_width : 3,
```
2. **Form Data Configuration:** Ensure that the `stroke_width` is configured
correctly in the form data and that the selected value is being saved and
passed properly. The `controlPanel.ts` file should have `stroke_width` as a
`SelectControl` with options like [1, 2, 3, 4, 5].
3. **Re-rendering:** Make sure the component re-renders when
`fd.stroke_width` changes. The `renderTrigger: true` setting in the control
configuration should facilitate this.
4. **Deck.gl Version:** Confirm that the latest version of Deck.gl is being
used to avoid compatibility issues. The current setup in `Arc.tsx` aligns with
the latest Deck.gl API
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/Arc.tsx)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/controlPanel.ts)</sup>.
If these steps don't resolve the issue, there might be a problem elsewhere
in the data flow or rendering logic.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
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]