I am trying to plot multiple data sets on a bar chart with unrelated column labels for each data set...
Suppose my data is a list comprised of three different sub-lists of varying size, i.e., they have the form
{<Data Set 1 (2 Items)>, <Data Set 2 (4 Items)>, <Data Set 3 (8 Items)>}
I want to present the data in a bar chart, where I label each of the sub-lists its own label: Data Set 1 should be labeled {0, 1}
, Data Set 2 should be labeled {00, 01, 10, 11}
and Data Set 3 should be labeled {000, 001, 010, ..., 111}
How can I accomplish this?
In my current situation, I would like to add the binary expansion listed above to the following bar chart. The last bit of code is obviously wrong, but that's the problem I'm trying to fix.
BarChart[
{{.45, .55},
{0.25, 0.26, 0.27, 0.22},
{0.125, 0.125, 0, 0.25, 0.25, 0, 0.25, 0}},
ChartElementFunction -> "GlassRectangle",
ChartStyle -> "Pastel",
ChartLabels ->
{{"Order 1", "Order 2", "Order 3"},
{"0", "1", "00", "01", "10", "11", "000", "001",
"010", "011", "100", "101", "110", "111"}}]
Any help with this issue would be much appreciated, Thanks!