How to create a Script Report in V13

Well, this post was very helpfull. It should be written in specific format
But still I need to know the same format for creating charts.
Any ideas?