Is there a simple way in the API to do this without building my own?

I'd like to chart the PL of a trade and it's length.

Thanks!