How can we put trade history on to graphic?

How can we put trade history on to graphic? Any script for that?