So my input data is two dictionary D1 and D2, it looks like this:
D1 = {
'A':{'X1':1, 'X2':2},
'B':{'X3':3, 'X4':4,'X5':10},
...
'T':{'X100':30}
}
D2 = {
'A':{'X1':4, 'X2':2},
'B':{'X3':13, 'X4':2,'X5':8},
...
'T':{'X100':16}
}
UPDATE: I manually draw a picture to show what I want here.
Both D1 and D2 has 20 keys (from A to T, let's call these main keys), and each main key corresponds to another dictionary with the same keys, for example, A corresponds to another dictionary with key X1 and X2 (let's call these X keys since they all start with X). I want to draw a 4 by 5 barcharts in one plot, each barchart corresponds to one main key. For each individual plot, I want to plot a barchart with categories correspond to X keys.
Now I ran into two issues, any help on the two issues will be much appreciated.
First issue is as you can see # of X keys are different in each category, how do I create dynamic bars in barchart based on # of X keys? One way I can think of is create variable based on X key names.
Second issue is how do I group these 20 dynamic barcharts in a single plot? Thanks a lot in advance!

