Spaces:
Runtime error
Runtime error
bug/piechart_numbers_overlapping (#2)
Browse files- more radius offset for text (922d88d7074219e8d094e2145c96d802c1f8abd2)
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 |
|