lynn-twinkl commited on
Commit
6269878
·
1 Parent(s): 8b56a5d

added: chart colors

Browse files
Files changed (1) hide show
  1. src/px_charts.py +2 -3
src/px_charts.py CHANGED
@@ -8,7 +8,7 @@ def plot_histogram(df: pd.DataFrame, col_to_plot: str, bins: int, height: int =
8
  x=col_to_plot,
9
  nbins=bins,
10
  title=None,
11
- color_discrete_sequence=['#646DEF']
12
  )
13
 
14
  plt.update_layout(
@@ -38,11 +38,10 @@ def plot_topic_countplot(topics_df: pd.DataFrame, topic_id_col: str, topic_name_
38
  y='Count',
39
  custom_data=["top_5_words", topic_name_col],
40
  title=None,
41
- color_discrete_sequence=['#FF5733']
42
  )
43
 
44
  plt.update_traces(
45
- marker_color='#646DEF',
46
  textposition='outside',
47
  hovertemplate=(
48
  'Topic Name: %{customdata[1]}<br>'
 
8
  x=col_to_plot,
9
  nbins=bins,
10
  title=None,
11
+ color_discrete_sequence=['#a7d6fd']
12
  )
13
 
14
  plt.update_layout(
 
38
  y='Count',
39
  custom_data=["top_5_words", topic_name_col],
40
  title=None,
 
41
  )
42
 
43
  plt.update_traces(
44
+ marker_color='#FFA500',
45
  textposition='outside',
46
  hovertemplate=(
47
  'Topic Name: %{customdata[1]}<br>'