I need to plot data like this:
df1
id value
ba1 4
ba2 5
ba3 5
df2
id value
ba1, ba3 4
ba2 3
ba2, ba3 2
ba3 5
df3
id value
ba1, ba3 3
ba1, ba3, ba4 1
ba2 3
ba2, ba3 2
ba3 4
ba3, ba4 1
Every df has the same sum of value, 14. I think that would be a stacked bar plot good solution, with one bar per df, where values would be presented in percent. But I have no idea how to do from three different data frames. Everything I found there it was for the more numeric-value column from one df. Any help is welcomed. Thanks in advance.
The desired output would be something like this: example but in X would be name of dataframe