s880453 commited on
Commit
26f2127
·
verified ·
1 Parent(s): e6d0b8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = {"data_frame": agg_df, "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
 
 
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