How to do bar graph base widgets in digital view

I want to create a bar chart in panel and widget but I am not able to do it. Can you suggest to me the right way to do bar chart in widget?