Leaderboard

This is the official documentation of the @forestadmin/agent Node.js agent.

Leaderboard Charts display a list of records sorted by their value in descending order.

agent.addChart('companiesLive', async (context, resultBuilder) => {
  // [...]

  return resultBuilder.leaderboard({
    Bonanza: 5835694,
    TalkSpace: 4179218,
    Tesco: 3959931,
    BitPesa: 3856685,
    Octiv: 3747458,
  });
});

Last updated