Skip to content

Add support for config.plot_theme#3250

Merged
vladsavelyev merged 2 commits intomainfrom
plotly_themes
Jul 3, 2025
Merged

Add support for config.plot_theme#3250
vladsavelyev merged 2 commits intomainfrom
plotly_themes

Conversation

@ewels
Copy link
Member

@ewels ewels commented Jul 2, 2025

This PR adds a new plot_theme configuration option that allows users to customize the visual appearance of all plots in MultiQC reports using any registered Plotly theme.

  • Added plot_theme configuration option (accepts any Plotly theme name like "plotly_dark", "ggplot2", "seaborn", etc.)
  • Created a custom MultiQC default plotly theme that preserves existing styling when no theme is specified
  • Refactored plot initialization to use templates instead of hardcoded layout properties
  • Updated configuration schema and documentation

Users can now set their preferred theme, eg: plot_theme: "plotly_dark"

When no theme is specified, plots use the same styling as before. When a theme is set, all plots consistently use that theme's styling.

Fixes #3162

@ewels ewels requested a review from vladsavelyev July 2, 2025 22:41
@ewels ewels linked an issue Jul 2, 2025 that may be closed by this pull request
@ewels ewels added this to the v1.30 milestone Jul 2, 2025
Copy link
Member

@vladsavelyev vladsavelyev left a comment

Choose a reason for hiding this comment

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

Awesome!!

@vladsavelyev vladsavelyev merged commit 3cacc51 into main Jul 3, 2025
14 checks passed
@vladsavelyev vladsavelyev deleted the plotly_themes branch July 3, 2025 10:01
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.

Enable plotly theme customisation

2 participants