Paula Leonova commited on
Commit
a0c7a3f
1 Parent(s): a6b5529

Update chart axis

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -45,11 +45,11 @@ def plot_dual_bar_chart(topics_summary, scores_summary, topics_text, scores_text
45
 
46
  fig.update_traces(texttemplate='%{text:0.1f}%', textposition='outside')
47
  fig.update_layout(height=600, width=700) #, title_text="Predictions for")
 
48
  fig.update_xaxes(matches='x')
49
  fig.update_yaxes(showticklabels=False) # hide all the xticks
50
  fig.update_yaxes(showticklabels=True, row=1, col=1)
51
 
52
-
53
  st.plotly_chart(fig)
54
 
55
  # def plot_dual_bar_chart(topics_summary, scores_summary, topics_text, scores_text):
45
 
46
  fig.update_traces(texttemplate='%{text:0.1f}%', textposition='outside')
47
  fig.update_layout(height=600, width=700) #, title_text="Predictions for")
48
+ fig.update_xaxes(range=[0,115])
49
  fig.update_xaxes(matches='x')
50
  fig.update_yaxes(showticklabels=False) # hide all the xticks
51
  fig.update_yaxes(showticklabels=True, row=1, col=1)
52
 
 
53
  st.plotly_chart(fig)
54
 
55
  # def plot_dual_bar_chart(topics_summary, scores_summary, topics_text, scores_text):