Update app.py
Browse files
app.py
CHANGED
|
@@ -1582,7 +1582,7 @@ def create_plot(df, chart_type, x_column, y_column, group_column=None, size_colu
|
|
| 1582 |
colors = COLOR_SCHEMES.get(color_scheme_name, px.colors.qualitative.Plotly)
|
| 1583 |
|
| 1584 |
# --- 5. 創建圖表 (核心邏輯) ---
|
| 1585 |
-
fig_params = {"
|
| 1586 |
if group_col and custom_colors_dict: fig_params["color_discrete_map"] = custom_colors_dict
|
| 1587 |
effective_y = y_col_agg # 使用聚合後或處理過的 Y 軸列名
|
| 1588 |
|
|
|
|
| 1582 |
colors = COLOR_SCHEMES.get(color_scheme_name, px.colors.qualitative.Plotly)
|
| 1583 |
|
| 1584 |
# --- 5. 創建圖表 (核心邏輯) ---
|
| 1585 |
+
fig_params = {"title": title, "color_discrete_sequence": colors, "width": width, "height": height}
|
| 1586 |
if group_col and custom_colors_dict: fig_params["color_discrete_map"] = custom_colors_dict
|
| 1587 |
effective_y = y_col_agg # 使用聚合後或處理過的 Y 軸列名
|
| 1588 |
|