I have some objects that represent maintenance jobs, each with a time column like this:
Due On |
---|
2021-12-01 |
2022-06-17 |
2022-07-05 |
2022-07-05 |
2022-08-01 |
2023-09-02 |
How can I generate a cumulative graph in Palantir Foundry Workshop, plotting values like this?
You can do this using a Foundry Function. Create a TypeScript functions repository and use the following code (see comments inline for an explanation):
Commit your changes and publish a function version. There is a step-by-step guide in the Palantir Foundry documentation on how to create a repository and publish functions.
In your Workshop, you can create a 'Chart: XY' widget. As the data source, select the function you created and pass in the relevant object set. There's also Palantir Foundry documentation on using a derived aggregation in Workshop.