Skip to content

Commit

Permalink
Reduce number of datapoints in weekly downloads sparkline (#8292)
Browse files Browse the repository at this point in the history
  • Loading branch information
szakarias authored Nov 15, 2024
1 parent fb497ba commit 17d3699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void create(HTMLElement element, Map<String, String> 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) => (
Expand Down

0 comments on commit 17d3699

Please sign in to comment.