How to add dynamic chart in print format?

Hello Everyone,
I want to add a chart that should be dynamically printed in print format from any doctype.it’s possible?