Spaces:
Runtime error
Runtime error
bug/piechart_numbers_overlapping
#2
by
ignacioct
- opened
app.py
CHANGED
@@ -136,7 +136,7 @@ def donut_chart_target() -> alt.Chart:
|
|
136 |
|
137 |
c1 = base.mark_arc(innerRadius=20, stroke="#fff")
|
138 |
|
139 |
-
c2 = base.mark_text(radiusOffset=
|
140 |
|
141 |
chart = c1 + c2
|
142 |
|
|
|
136 |
|
137 |
c1 = base.mark_arc(innerRadius=20, stroke="#fff")
|
138 |
|
139 |
+
c2 = base.mark_text(radiusOffset=20).encode(text="values:Q")
|
140 |
|
141 |
chart = c1 + c2
|
142 |
|