jmartinmendev-source opened a new issue, #37170:
URL: https://github.com/apache/superset/issues/37170

   ### Bug description
   
   When using the Sunburst Chart in Superset 6 with Dark Mode enabled, the 
“Show Total” text in the center is rendered in black, making it invisible 
against the dark background.
   
   Steps to reproduce:
   
   1. Open a dashboard with a Sunburst Chart.
   2. Enable Show Total in the chart settings.
   3. Switch to Dark Mode.
   4. Observe that the total value text is black and unreadable.
   
   Expected behavior:
   The Show Total text color should automatically adapt to the current theme:
   - White (#FFFFFF) in Dark Mode
   - Black (#0E1020) in Light Mode
   
   ### Screenshots/recordings
   
   Light mode:
   <img width="800" height="648" alt="Image" 
src="https://github.com/user-attachments/assets/2e7b6714-805f-45c5-b4a2-ea42aa0717e7";
 />
   
   Dark mode: 
   <img width="800" height="607" alt="Image" 
src="https://github.com/user-attachments/assets/8b845d1f-4db4-417e-bd8a-0ead161241d2";
 />
   
   ### Superset version
   
   6.0.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   - The issue only affects the Sunburst Chart; other charts (Sankey, Heatmap, 
Bar, Line) adapt correctly to dark mode.
   - This is caused by the “Show Total” text being rendered inside the ECharts 
canvas with a hardcoded black color, which does not respect the Superset theme 
tokens.
   - Currently, there is no way to change this color via JSON metadata, theme 
overrides, or CSS.
   
   Suggested fix:
   - Make the text color of “Show Total” dynamic based on the theme.
   - Ideally, it should read the current theme (light/dark) and use the 
appropriate contrasting color.
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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