jpdiazpardo commited on
Commit
b30d2c3
1 Parent(s): ff63bdc

Update charts.py

Browse files
Files changed (1) hide show
  1. charts.py +4 -3
charts.py CHANGED
@@ -13,11 +13,12 @@ def add_emoji(emotions_list):
13
 
14
  return emotions_list
15
 
 
16
  def spider_chart(dictionary):
17
 
18
  fig = go.Figure(data=go.Scatterpolar(
19
- r=[round(s*100,2) for s in list(dictionary.values())],
20
- theta= add_emoji(list(dictionary.keys())),
21
  fill='toself'))
22
 
23
  fig.update_layout(
@@ -27,7 +28,7 @@ def spider_chart(dictionary):
27
  ),
28
  ),
29
  showlegend=False,
30
- width = 400, height = 400,
31
  title = "Audio Sentiment Analysis", title_x=0.5)
32
 
33
  return fig
 
13
 
14
  return emotions_list
15
 
16
+
17
  def spider_chart(dictionary):
18
 
19
  fig = go.Figure(data=go.Scatterpolar(
20
+ r=[round(v*100,2) for v in dictionary.values()],
21
+ theta= add_emoji([k for k in dictionary.keys()]),
22
  fill='toself'))
23
 
24
  fig.update_layout(
 
28
  ),
29
  ),
30
  showlegend=False,
31
+ width = 400, height = 400,
32
  title = "Audio Sentiment Analysis", title_x=0.5)
33
 
34
  return fig