Skip to content

fix(charts): improve minor gridline visibility in dark themes#38371

Merged
michael-s-molina merged 1 commit intoapache:masterfrom
aminghadersohi:fix-37344-dark-theme-gridlines
Mar 4, 2026
Merged

fix(charts): improve minor gridline visibility in dark themes#38371
michael-s-molina merged 1 commit intoapache:masterfrom
aminghadersohi:fix-37344-dark-theme-gridlines

Conversation

@rusackas
Copy link
Member

@rusackas rusackas commented Mar 3, 2026

SUMMARY

Fixes #37344 - Minor tick gridlines were overly bright and prominent in dark themes.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

The issue reporter provided screenshots showing overly bright minor gridlines in dark theme:

DESCRIPTION OF CHANGE

Minor tick gridlines were using ECharts default colors instead of theme-aware colors, making them overly bright and visually dominant in dark themes. This change applies the theme's colorBorderSecondary token to minor gridlines for both x and y axes.

Changes:

  • Added minorSplitLine configuration to xAxis theme
  • Added minorSplitLine configuration to yAxis theme
  • Uses colorBorderSecondary token for appropriate subtlety

This ensures minor gridlines maintain proper visual hierarchy (less prominent than major gridlines) while being theme-aware across both light and dark modes.

TESTING INSTRUCTIONS

  1. Enable dark theme in Superset
  2. Create a chart with visible gridlines (e.g., time series, bar chart)
  3. Verify minor gridlines are now subtle and appropriately colored
  4. Switch to light theme and verify minor gridlines still look good

ADDITIONAL INFORMATION

  • Type: Bug fix (cosmetic)
  • Scope: ECharts-based visualizations
  • Breaking Change: No

Minor tick gridlines were using ECharts default colors, making them
overly bright and prominent in dark themes. This change applies the
theme's colorBorderSecondary token to minor gridlines, making them
appropriately subtle while maintaining visual hierarchy.

Fixes apache#37344

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bito-code-review
Copy link
Contributor

bito-code-review bot commented Mar 3, 2026

Code Review Agent Run #ce0380

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 16f3c5a..16f3c5a
    • superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.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

@michael-s-molina michael-s-molina merged commit 7815afb into apache:master Mar 4, 2026
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor Tick Gridlines are Overly Bright and Prominent in Dark Themes (Superset v6.0)

3 participants