I can create a BarChart
with horizontal bars (using BarOrigin -> Left
) and Mathematica will automatically position the ChartLabels
on the left hand side:
data1D = RandomReal[{1, 10}, 10];
labels = DictionaryLookup["D*", 10];
BarChart[data1D, BarOrigin -> Left, ChartLabels -> labels,
BaseStyle -> {FontFamily -> "Calibri", 14}]
However, if I want to plot a stacked chart in the same way, the ChartLabels
appear below the bars:
data2D = RandomReal[{1, 10}, {10, 2}];
BarChart[data2D, BarOrigin -> Left, ChartLayout -> "Stacked",
ChartLabels -> {labels, None},
BaseStyle -> {FontFamily -> "Calibri", 14}]
How can I get the labels for the stacked chart to appear as they do in the simple chart?