Skip to content

Commit

Permalink
Fixes listening trends chart not loading when lots of scrobbles
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmenon committed Dec 27, 2023
1 parent 02fb12c commit 2414469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/listening-trends/listening-trends.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class ListeningTrendsComponent implements OnInit {
}

adjustSeriesArrays(data: { name: string; series: number[] }[]): any {
const maxSumOfLengths = 100000;
const maxSumOfLengths = 25000;
let sumOfLengths = data.reduce((accumulator, currentValue) => accumulator + currentValue.series.length, 0);
console.log(`Total data points to show in chart is: ${sumOfLengths} of max ${maxSumOfLengths} allowed`)

Expand Down

0 comments on commit 2414469

Please sign in to comment.