Update figure factories for dark theme support #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Update Plotly figure factories to work well with dark backgrounds. This includes transparent backgrounds, dark-friendly map styles, and theme-aware text colors.
Files to Modify
portfolio_app/figures/choropleth.pyportfolio_app/figures/time_series.pyportfolio_app/figures/summary_cards.pyChanges Required
1. choropleth.py
Update Default Map Style
Add Transparent Backgrounds
Update Annotation Colors
2. time_series.py
Add Transparent Backgrounds to All Functions
For
create_price_time_series:For
create_volume_time_series:For
create_market_comparison_chart:3. summary_cards.py
Already has transparent background (
paper_bgcolor="rgba(0,0,0,0)"), but needs font color update:Color Reference
Optional: Theme-Aware Parameter
Consider adding a
dark_modeparameter to figure factories for future light theme support:Acceptance Criteria
Part of Sprint 7 (#27)