Arts-of-coding commited on
Commit
a94febf
·
verified ·
1 Parent(s): 0711c04

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +1 -1
dash_plotly_QC_scRNA.py CHANGED
@@ -381,7 +381,7 @@ def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chos
381
 
382
  #expression_means = expression_means.select(["batch", "Gene", "Expression"] + condition3_chosen)
383
 
384
- fig_pie = px.pie(category_counts, values="normalized_count", names=col_chosen, labels=col_chosen, hole=.3, title=pie_title,template="seaborn")
385
 
386
  #labels = category_counts[col_chosen].to_list()
387
  #values = category_counts["normalized_count"].to_list()
 
381
 
382
  #expression_means = expression_means.select(["batch", "Gene", "Expression"] + condition3_chosen)
383
 
384
+ fig_pie = px.pie(category_counts, values="normalized_count", names=col_chosen, labels=col_chosen, hole=.3, title=pie_title,template="seaborn", category_orders=col_chosen)
385
 
386
  #labels = category_counts[col_chosen].to_list()
387
  #values = category_counts["normalized_count"].to_list()