Remove deprecated app_new.py and consolidate main application logic into main.py
- Deleted `app_new.py`, which was previously the main entry point for the dashboard application, to streamline the codebase. - Consolidated the application initialization and callback registration logic into `main.py`, enhancing modularity and maintainability. - Updated the logging and error handling practices in `main.py` to ensure consistent application behavior and improved debugging capabilities. These changes simplify the application structure, aligning with project standards for modularity and maintainability.
This commit is contained in:
33
config/constants/chart_constants.py
Normal file
33
config/constants/chart_constants.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Plotly Chart Colors
|
||||
CHART_COLORS = {
|
||||
"primary_line": "#2196f3", # Blue
|
||||
"secondary_line": "#ff9800", # Orange
|
||||
"increasing_candle": "#26a69a", # Green
|
||||
"decreasing_candle": "#ef5350", # Red
|
||||
"neutral_line": "gray"
|
||||
}
|
||||
|
||||
# UI Text Constants
|
||||
UI_TEXT = {
|
||||
"no_data_available": "No data available",
|
||||
"error_prefix": "Error: ",
|
||||
"volume_analysis_title": "{symbol} Volume Analysis ({timeframe})",
|
||||
"price_movement_title": "{symbol} Price Movement Analysis ({timeframe})",
|
||||
"price_action_subplot": "Price Action",
|
||||
"volume_analysis_subplot": "Volume Analysis",
|
||||
"volume_ma_subplot": "Volume vs Moving Average",
|
||||
"cumulative_returns_subplot": "Cumulative Returns",
|
||||
"period_returns_subplot": "Period Returns (%)",
|
||||
"price_range_subplot": "Price Range (%)",
|
||||
"price_yaxis": "Price",
|
||||
"volume_yaxis": "Volume",
|
||||
"cumulative_return_yaxis": "Cumulative Return",
|
||||
"returns_yaxis": "Returns (%)",
|
||||
"range_yaxis": "Range (%)",
|
||||
"price_trace_name": "Price",
|
||||
"volume_trace_name": "Volume",
|
||||
"volume_ma_trace_name": "Volume MA(20)",
|
||||
"cumulative_return_trace_name": "Cumulative Return",
|
||||
"returns_trace_name": "Returns (%)",
|
||||
"range_trace_name": "Range %"
|
||||
}
|
||||
Reference in New Issue
Block a user