From ffcc443b85b83098fad4ed325d674a36839634f4 Mon Sep 17 00:00:00 2001 From: Sarah Zakarias Date: Fri, 15 Nov 2024 11:04:50 +0000 Subject: [PATCH] Reduce number of datapoints in weekly downloads sparkline --- pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart b/pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart index c63c8b16b..36f91376b 100644 --- a/pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart +++ b/pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart @@ -28,7 +28,7 @@ void create(HTMLElement element, Map options) { final weeklyDownloads = decoded.sublist(1); // TODO(https://github.com/dart-lang/pub-dev/issues/8251): Update this to 52. final dataListLength = - weeklyDownloads.length > 40 ? 40 : weeklyDownloads.length; + weeklyDownloads.length > 28 ? 28 : weeklyDownloads.length; return List.generate( weeklyDownloads.length, (i) => (