Skip to content

Conversation

@msyavuz
Copy link
Member

@msyavuz msyavuz commented Jan 14, 2026

SUMMARY

Initializing the value of xAxisForceCategorical causes some charts to treat temporal axis as categorical. This is a defensive fix to adress that issue.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • 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

@msyavuz msyavuz marked this pull request as ready for review January 14, 2026 06:30
@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 14, 2026

Code Review Agent Run #061fe7

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 9c40ced..9c40ced
    • superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/customControls.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot bot added the change:frontend Requires changing the frontend label Jan 14, 2026
@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 9c40ced
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/696738102498f80008de00ae
😎 Deploy Preview https://deploy-preview-37115--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.

if (!isNumericXAxis) {
return control.value;
}
return state?.form_data?.x_axis_sort !== undefined || control.value;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return state?.form_data?.x_axis_sort !== undefined || control.value;
return state?.form_data?.x_axis_sort ?? control.value;

description: t('Treat values as categorical.'),
initialValue: (control: ControlState, state: ControlPanelState | null) =>
state?.form_data?.x_axis_sort !== undefined || control.value,
initialValue: (control: ControlState, state: ControlPanelState | null) => {
Copy link
Member

Choose a reason for hiding this comment

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

There is a little bit of business logic hidden here, maybe one of those cases where a comment could help

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

Labels

change:frontend Requires changing the frontend packages size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants