diff --git a/backtester/statistics/charts.py b/backtester/statistics/charts.py index 2bdea84..c79b6f6 100644 --- a/backtester/statistics/charts.py +++ b/backtester/statistics/charts.py @@ -24,8 +24,7 @@ def returns_chart(report): text = areas.mark_text( align='left', dx=5, - dy=-5).encode(text=alt.condition(nearest, 'accumulated return:Q', alt.value(' '))).transform_calculate( - label='datum.y + " %"') + dy=-5).encode(text=alt.condition(nearest, 'accumulated return:Q', alt.value(' '), format='.2%')) layered = alt.layer(selectors, points,