Hi Rahul,
Follow the below steps:
1. Create a group of the gender group by making male and female as a group.
2. Drop the grouped field and measure in the sheet and the gender field in the color shelf.
3. You can create a chart like below. I have created a sample chart with region as group.
Hope it helps!