How to add data on charts

So I would like to have 2 donut charts showing on a portal I am developing, I want it to show the amount of male and female members.
How would I get this to show with using a count() of the amount of records returned for male and female.
Tried a couple fo things but this just not seem to work for me.

Community Page
Last updated: