Hi Shraddha,
This can be done fairly easy, and has been well documented: see this instruction on how to set up charts. You would need to feed the chart with data/objects, that you could create in a microflow data source for instance. In this microflow, calculate the values regarding active/inactive users, and set the objects to be used in your chart.
Good luck!
This is the piechart with random valuesbut I want exactly this way