How to build a bar chart showing both values and percentage of total for postgres datasource?


Guys can anyoune help me to show both values and percentage above the bar as shown in image?
Thanks in advance.