From e7a778e4cb20468fc1c52dbe0d3c31006a91ea61 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Thu, 26 Oct 2023 19:22:44 +0200 Subject: [PATCH] Changed the plotly default theme (#269) I think the current blueish plotly default theme bits itself quit beadly with @KM-R s great work. I propose to set the deault plotly template to either: - plotly_white - ggplot2 - seaborn Simply change the constant i have set will change this. Heren you can find the catalog of themes: https://plotly.com/python/templates/#disable-default-theming I would not suggest to do more than changing the default layout. --- src/aki_prj23_transparenzregister/ui/finance_elements.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aki_prj23_transparenzregister/ui/finance_elements.py b/src/aki_prj23_transparenzregister/ui/finance_elements.py index e49b42f..be2bce5 100644 --- a/src/aki_prj23_transparenzregister/ui/finance_elements.py +++ b/src/aki_prj23_transparenzregister/ui/finance_elements.py @@ -4,11 +4,14 @@ from io import StringIO import pandas as pd import plotly.graph_objs as go +import plotly.io as pio from dash import Input, Output, State, callback, dcc, html from sqlalchemy.orm import Session from aki_prj23_transparenzregister.ui import data_elements +pio.templates.default = "plotly_white" + COLORS = { "light": "#edefef", "lavender-blush": "#f3e8ee",