I have some objects that represent maintenance jobs that look like this:
Due On | Status |
---|---|
2021-12-01 | open |
2022-06-17 | open |
2022-07-05 | closed |
2022-07-05 | closed |
2022-08-01 | open |
2023-09-02 | open |
How can I generate a segmented 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.