-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/plotly theming #6
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the package scoped to Streamlit with plotly theming being a small extra, rather than trying to provide plotting-like functionality. We also don't need to store large dictionaries, these can go to data
folder as JSONs. Some code parts can be significantly improved. See the comments elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overly verbose. Some of the keys in undp_colors
are used only once (or not at all).
- Write the configuration explicitly in the dictionary inside
custom_template.layout.update
(even if this requires repetition). - Remove
undp_colours
. - Move the template dictionary to
data/
as a JSON file, them read it back here withutils.read_file
. - Call the template
"undp"
instead of"undp_template"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed undp_colors
from plotly_themes and placed it in data/
for reference although it is currently not used.
…wcase concrete examples
Summary
This request mainly adds theming functionality for Plotly charts by adding a custom theme to Plotly and a prebuilt wrapper for a few plot types. A new integration page is also introduced to the demo application to showcase the new Plotly theme feature.
Furthermore, this request addresses the link animation on-hover effect (#4), visited URL style, and checkbox state issue (#5 (comment)).
New Features
standard
pageBug Fixes
Checklist
pyproject.toml
and updatedpoetry.lock
(if applicable).Screenshots / Examples
Additional Notes
None