From 2b370309384296d608a1d58ca92cf7d4abad763a Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 24 Mar 2024 16:29:27 +0100 Subject: [PATCH] fix: update legend label in moodpies chart Updated the property for setting the chart legend's label from `legend` to `legend_label` in the `moodpies` function to align with the latest library syntax. This change ensures compatibility with newer versions of the visualization library, preventing potential issues with legend rendering in mood statistics charts. --- mood/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mood/statistics.py b/mood/statistics.py index 11b651f..a99158c 100644 --- a/mood/statistics.py +++ b/mood/statistics.py @@ -160,7 +160,7 @@ def moodpies(user): end_angle=cumsum("angle"), line_color="white", fill_color="color", - legend="mood", + legend_label="mood", source=weekly_data, )