Graph title in API request

In rrdtool there is an option to define the graph title in the image, as in the example below:
rrdtool graph /tmp/linear.png -t "sample text" xxxxx
image

It would be very useful to have that option when using the API to generate graphs.