How to create a widget

How to create a widget

Hello
I need a dashboard widget that shows me the components and their count in bars 
How can I make it? 

                  New to ADSelfService Plus?