Skip to content

Conversation

@FelipeGLopez
Copy link
Contributor

@FelipeGLopez FelipeGLopez commented Jan 8, 2026

SUMMARY

The code passed raw numerical column values as the base pointRadius for all units (Kilometers, Miles, and Pixels), causing points to render at extreme sizes or disappear entirely.
The fix has two parts:
(1) In transformProps.js, it always uses DEFAULT_POINT_RADIUS as the base radius regardless of unit, then lets individual points get their values from geoJSON properties
(2) In ScatterPlotGlowOverlay.jsx, it adds normalization specifically for Pixels mode (min/max scaling to 5px-radius/3 range), while Kilometers and Miles were already being converted to pixels via computePointRadiusPixels() but now work correctly because they're based on the normalized DEFAULT_POINT_RADIUS instead of raw data values.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

Currently, Mapbox does not display anything when a numerical column other than Auto is selected, regardless of the Point Radius Unit.

Before.mov

After:

Here, we select a numerical column (radius_miles), and the points are correctly rendered.

After.mov

TESTING INSTRUCTIONS

  1. Create a MapBox with the sample GeoData dataset
  2. Drag and drop the LON and LAT columns to the respective fields
  3. Go to the Point Radius field and select the radius_miles column
  4. Select miles in the Point Radius Unit field
  5. Click on Update Chart

ADDITIONAL INFORMATION

@FelipeGLopez FelipeGLopez changed the title Add calculations for Pixel in map fix(charts): numerical column for the Point Radius field in mapbox Jan 13, 2026
@FelipeGLopez FelipeGLopez marked this pull request as ready for review January 13, 2026 14:25
@codeant-ai-for-open-source
Copy link
Contributor

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@netlify
Copy link

netlify bot commented Jan 13, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 1b6a8f2
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6977b5e70add8b00073ec448
😎 Deploy Preview https://deploy-preview-36962--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codeant-ai-for-open-source
Copy link
Contributor

CodeAnt AI finished reviewing your PR.

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 13, 2026

Code Review Agent Run #6faee1

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: ece6465..01e67cd
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/transformProps.js
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas
Copy link
Member

Would appreciate it if you can check the bot review comments and either reply or address them, and get pre-commit to pass.

The giant circles are a little overwhelmingly large in some cases, but if they're accurate, they're accurate. I wonder if there's a way to set opacity or something to make them more useful in this regard? Then you could see where you are on the map when they cover the whole chart, at least.

Superset uses Git pre-commit hooks courtesy of pre-commit. To install run the following:

pip3 install -r requirements/development.txt
pre-commit install

A series of checks will now run when you make a git commit.

Alternatively it is possible to run pre-commit by running pre-commit manually:

pre-commit run --all-files

@codeant-ai-for-open-source
Copy link
Contributor

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@FelipeGLopez
Copy link
Contributor Author

Would appreciate it if you can check the bot review comments and either reply or address them, and get pre-commit to pass.

The giant circles are a little overwhelmingly large in some cases, but if they're accurate, they're accurate. I wonder if there's a way to set opacity or something to make them more useful in this regard? Then you could see where you are on the map when they cover the whole chart, at least.

Superset uses Git pre-commit hooks courtesy of pre-commit. To install run the following:

pip3 install -r requirements/development.txt
pre-commit install

A series of checks will now run when you make a git commit.

Alternatively it is possible to run pre-commit by running pre-commit manually:

pre-commit run --all-files

Now that you mentioned opacity, I found an issue in the “Visual Tweaks” section. The opacity field is present, but regardless of the value you set, the visual opacity remains the same. I’ll open a separate PR to address this issue.

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 14, 2026

Code Review Agent Run #4cfd2d

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 01e67cd..df1c24c
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/transformProps.js
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

const maxLabel = Math.max(...clusterLabelMap.filter(v => !Number.isNaN(v)));

// Calculate min/max radius values for Pixels mode scaling
let minRadiusValue = Infinity;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some tests?

@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 26, 2026
@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 26, 2026

Code Review Agent Run #c147ba

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: df1c24c..83fce2b
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/transformProps.js
    • superset-frontend/plugins/legacy-plugin-chart-map-box/test/ScatterPlotGlowOverlay.test.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 26, 2026

Code Review Agent Run #5c6437

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: 83fce2b..eb7f1af
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/transformProps.js
    • superset-frontend/plugins/legacy-plugin-chart-map-box/test/ScatterPlotGlowOverlay.test.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@EnxDev EnxDev added the 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR label Jan 28, 2026
@github-actions github-actions bot added 🎪 eb7f1af 🚦 building Environment eb7f1af status: building and removed 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR labels Jan 28, 2026
@github-actions github-actions bot added 🎪 eb7f1af 📅 2026-01-28T09-39 Environment eb7f1af created at 2026-01-28T09-39 🎪 eb7f1af 🤡 EnxDev Environment eb7f1af requested by EnxDev 🎪 ⌛ 48h Environment expires after 48 hours (default) labels Jan 28, 2026
@github-actions
Copy link
Contributor

🎪 Showtime is building environment on GHA for eb7f1af

@github-actions github-actions bot added 🎪 eb7f1af 🚦 deploying Environment eb7f1af status: deploying 🎪 eb7f1af 🚦 running Environment eb7f1af status: running 🎪 🎯 eb7f1af Active environment pointer - eb7f1af is receiving traffic 🎪 eb7f1af 🌐 34.219.31.62:8080 Environment eb7f1af URL: http://34.219.31.62:8080 (click to visit) and removed 🎪 eb7f1af 🚦 building Environment eb7f1af status: building 🎪 eb7f1af 🚦 deploying Environment eb7f1af status: deploying 🎪 eb7f1af 🚦 running Environment eb7f1af status: running 🎪 🎯 eb7f1af Active environment pointer - eb7f1af is receiving traffic labels Jan 28, 2026
@github-actions
Copy link
Contributor

🎪 Showtime deployed environment on GHA for eb7f1af

Environment: http://34.219.31.62:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

Copy link
Contributor

@EnxDev EnxDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FelipeGLopez should we add a test to ensure that points remain visible when the radius is set to extreme values?

PS: The test should validate the user-facing behavior, verifying that points are still rendered and accessible from the user’s perspective, rather than asserting on implementation details.

@FelipeGLopez
Copy link
Contributor Author

@FelipeGLopez should we add a test to ensure that points remain visible when the radius is set to extreme values?

PS: The test should validate the user-facing behavior, verifying that points are still rendered and accessible from the user’s perspective, rather than asserting on implementation details.

Yes, you have a point there! I added that missing test and changed the tests.

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 28, 2026

Code Review Agent Run #fd214e

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset-frontend/plugins/legacy-plugin-chart-map-box/test/ScatterPlotGlowOverlay.test.tsx - 1
    • Test assertions insufficient for claimed behavior · Line 86-184
      These test changes replace detailed assertions on radius normalization logic with generic 'not.toThrow()' checks. Per repository guidelines, tests should verify actual behavior they claim to test, not just rendering. The test names suggest validation of radius scaling in Pixels mode, but the assertions only confirm no errors occur, allowing potential bugs in calculations to go undetected.
Review Details
  • Files reviewed - 3 · Commit Range: eb7f1af..8f8bb82
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
    • superset-frontend/plugins/legacy-plugin-chart-map-box/src/transformProps.js
    • superset-frontend/plugins/legacy-plugin-chart-map-box/test/ScatterPlotGlowOverlay.test.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎪 eb7f1af 🤡 EnxDev Environment eb7f1af requested by EnxDev 🎪 eb7f1af 🚦 running Environment eb7f1af status: running 🎪 eb7f1af 🌐 34.219.31.62:8080 Environment eb7f1af URL: http://34.219.31.62:8080 (click to visit) 🎪 eb7f1af 📅 2026-01-28T09-39 Environment eb7f1af created at 2026-01-28T09-39 plugins 🎪 🔒 showtime-blocked size/L 🎪 ⌛ 48h Environment expires after 48 hours (default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants