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

   <!-- Greeting -->
   Hey @Bindu-yadav8! I'm here to help you with any bugs, questions, or 
contributions you have. Let's tackle this issue together!
   
   <!-- Answer -->
   The Deck.gl 3D Hexagon Layer might be rendering as a 2D chart because the 
`extruded` property in the HexagonLayer configuration might not be set 
correctly or could be overridden by another setting. Here are a few things to 
check:
   
   1. **Ensure `extruded` is set to `true` in the configuration**:
      Make sure that the `extruded` property is explicitly set to `true` in 
your HexagonLayer configuration. Here is an example:
   
      ```tsx
      return new HexagonLayer({
        id: `hex-layer-${fd.slice_id}`,
        data,
        radius: fd.grid_size,
        extruded: true, // Ensure this is set to true for 3D rendering
        colorRange,
        outline: false,
        getElevationValue: aggFunc,
        getColorValue: aggFunc,
        ...commonLayerProps(fd, setTooltip, setTooltipContent),
      });
      ```
   
   2. **Check the Superset UI settings**:
      The `extruded` property can be toggled on or off through the Superset UI. 
Ensure that the "Extruded" checkbox is checked in the control panel under the 
"Map" section:
   
      ```jsx
      export const extruded = {
        name: 'extruded',
        config: {
          type: 'CheckboxControl',
          label: t('Extruded'),
          renderTrigger: true,
          default: true,
          description: t('Whether to make the grid 3D'),
        },
      };
      ```
   
   3. **Verify other related settings**:
      Ensure that other related settings, such as `elevationScale`, are set 
correctly and that your data contains the necessary elevation metrics.
   
   4. **Browser and WebGL support**:
      Since you've already confirmed that WebGL is supported and enabled in 
your browser, this should not be an issue. However, double-check that there are 
no browser-specific limitations affecting the rendering.
   
   By verifying these settings, you should be able to ensure that the 3D 
Hexagon Layer renders correctly in 3D. If the issue persists, there might be 
other underlying factors that need to be investigated further 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/index.ts)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/Hex.tsx)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/utilities/Shared_DeckGL.jsx)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Hex/controlPanel.ts)</sup>.
   
   
   <!-- 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]

Reply via email to