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.
This commit is contained in:
Philipp Horstenkamp 2023-10-26 19:22:44 +02:00 committed by GitHub
parent b564b2627c
commit e7a778e4cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,11 +4,14 @@ from io import StringIO
import pandas as pd import pandas as pd
import plotly.graph_objs as go import plotly.graph_objs as go
import plotly.io as pio
from dash import Input, Output, State, callback, dcc, html from dash import Input, Output, State, callback, dcc, html
from sqlalchemy.orm import Session from sqlalchemy.orm import Session
from aki_prj23_transparenzregister.ui import data_elements from aki_prj23_transparenzregister.ui import data_elements
pio.templates.default = "plotly_white"
COLORS = { COLORS = {
"light": "#edefef", "light": "#edefef",
"lavender-blush": "#f3e8ee", "lavender-blush": "#f3e8ee",