Grouping delta

I have some documents like those:

{
timestamp: t,
player: playerA,
team: teamA,
totalPoints: 10
},
{
timestamp: t,
player: playerB,
team: teamA,
totalPoints: 5
},
{
timestamp: t,
player: playerc,
team: teamA,
totalPoints: 10
},

{
timestamp: t+1,
player: playerA,
team: teamA,
totalPoints: 20
},
{
timestamp: t+1,
player: playerB,
team: teamA,
totalPoints: 10
},
{
timestamp: t,
player: playerc,
team: teamA,
totalPoints: 10
},

"totalPoints" is an integer with the total points earned by a player until this moment t.

Is there a way to plot in bars the points incremented in time by teams?

If you can get date_histogram aggregation with the exactly the same interval as the timestamp differences of documents,

Using Lens,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.