Charts
TL;DR
import type { Agent } from '@forestadmin/forest-cloud';
import { Schema } from '../typings';
export default function customizeAgent(agent: Agent<Schema>) {
agent.addChart('monthlyRecurringRevenue', async (context, resultBuilder) => {
// Your business logic to retrieve data here.
return resultBuilder.value(10000000);
});
}Implementing backend logic to retrieve data

Coding the visualization

Last updated