Creating custom report widget

How to create a custom report widget in OpManager?