Just to make sure we are on the same page, that plot is a stacked barplot, not a histogram.
It also has an error: how do you have > 1 relative abundance in the "POU deposit"? (I am not asking a question that I want answered, just pointing out that something went wrong)
That barplot can be interactively collapsed at phylum, family, and genus level.
You are asking for a solution outside of QIIME 2 — there are many possibilities! Looks like the plot you provided is in excel, so I assume that is your preferred venue. You should:
export the data from the QIIME 2 barplot visualization
open in Excel. You will have an observation matrix of samples X taxa. Use excel's stacked barplot chart function to make the plot you desire.