Skip to content

Conversation

@Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Sep 30, 2025

📝 Summary

Fixes #6601 .

dark:
CleanShot 2025-10-01 at 02 17 28

light:
CleanShot 2025-10-01 at 02 17 04

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@vercel
Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Sep 30, 2025 6:17pm

and get_current_theme() == "dark"
):
LOGGER.debug("setting background to black")
chart = chart.properties(background="black")
Copy link
Contributor

Choose a reason for hiding this comment

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

This does require a re-run and won't work when the mode is set to system. Should we just always make it transparent? Or inherit

@Light2Dark Light2Dark changed the title altair: set background to black for vegafusion if no background is set for dark mode altair: set background to transparent for vegafusion if no background is set Sep 30, 2025
@Light2Dark Light2Dark merged commit 6c58c1a into main Sep 30, 2025
29 of 41 checks passed
@Light2Dark Light2Dark deleted the sham/fix-altair-theme-vegafusion branch September 30, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Altair Charts fail to work in dark mode (still)

3 participants