Creating a stacking bar by different groups

I am trying to create a bar which should group the data and then within each group, it will indicate the sub-group.

For example. I have a list of customers with different plan and need to know how many of them are accepted or not! Example below:

But I am not able to replicate this! Any clue?
The data-source is ElasticSearch…

not 3d bar chart but this is what you could do

or this beauty