Skip to content

Commit 17d3699

Browse files
authored
Reduce number of datapoints in weekly downloads sparkline (#8292)
1 parent fb497ba commit 17d3699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void create(HTMLElement element, Map<String, String> options) {
2828
final weeklyDownloads = decoded.sublist(1);
2929
// TODO(https://github.com/dart-lang/pub-dev/issues/8251): Update this to 52.
3030
final dataListLength =
31-
weeklyDownloads.length > 40 ? 40 : weeklyDownloads.length;
31+
weeklyDownloads.length > 28 ? 28 : weeklyDownloads.length;
3232
return List.generate(
3333
weeklyDownloads.length,
3434
(i) => (

0 commit comments

Comments
 (0)