Graph in print format

How can I display graph of dynamic data in erpnext print format?