Skip to content

Commit

Permalink
include events in chart data
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-fei committed Jul 10, 2024
1 parent 291a8bd commit 90d4b1c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ function calculateReferrersBreakdown (data, max) {

function calculateChartData (data, resolution, now = Date.now()) {
const mapped = data.reduce((acc, curr) => {
if (curr.t === 'event') return acc
const normalizedDate = normalizeDate(curr.d, resolution)
const existing = acc.get(normalizedDate)

Expand Down

0 comments on commit 90d4b1c

Please sign in to comment.