Here is my "solution" to your issue;
I had to make up my own data, and in it, I only had one data point for each bar, so the box plots are not displayed correctly, but I believe with your data, the box plots will work correctly.
My solution, is an ugly solution. The only redeeming quality to it, is that it displays the data the way you want it to.
Here are the changes that I did to your chart to make it work
- I moved Treatment from Overlay to Color. Overlay forces all Volume levels to be in each overlay, thus your offset labels.
- Rather than just having Volume as your X axis, I included both Volume and Treatment on the axis.
- To remove the axis values for Treatment, I went into the Axis Settings for Treatment and unselected "Show Tick Labels"
- To change the Axis Label that is listing both Volume and Treatment, I clicked on the label and typed in Volume
- I then Right Clicked on the graph, and selected Customize
- I selected Bar, and changed the Width Proportion to 1
- Now to add the spacing between the Volume groups I added dummy records in the data table.
- For each level of Volume( 100, 150....Ethanol) I added 2 dummy records
- The values for the Treatment for the dummy records have one value that will be displayed before the current treatment levels and one that will appear after. I chose the values of A-spacer and Z-Spacer. Here is the data table with the dummy row
- I then right clicked above the Legend, and selected Legend Settings
- In here I selected only the categories I wanted to be displayed.
I call this pretty ugly, and I hope that another Community member will have a better solution. Here is the JSL that will reproduce my graph, as long as you have the dummy records added.
Names Default to Here( 1 );
Graph Builder(
Size( 570, 488 ),
Graph Spacing( 0 ),
Variables(
X( :Volume ),
X( :Treatment, Position( 1 ) ),
Y( :RLU ),
Color( :Treatment )
),
Elements(
Bar( X( 1 ), X( 2 ), Y, Legend( 6 ), Packed Primaries( 5 ) ),
Box Plot( X( 1 ), X( 2 ), Y, Legend( 7 ) )
),
SendToReport(
Dispatch(
{},
"Volume",
ScaleBox,
{Label Row(
1,
{Automatic Tick Marks( 0 ), Show Major Labels( 0 ),
Tick Mark Style( "Short Divider" )}
), Label Row( 2, Tick Mark Style( "Short Divider" ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
6,
Properties( 1, {Fill Color( 52 )}, Item ID( "Cell-Treated", 1 ) ),
Properties(
2,
{Fill Color( 21 )},
Item ID( "Negative-Control", 1 )
),
Properties(
3,
{Fill Color( 51 )},
Item ID( "Positive-Control", 1 )
),
Properties( 4, {Fill Color( 56 )}, Item ID( "Virus-Treated", 1 ) ),
Properties( -1, {Fill Color( 52 )}, Item ID( "RLU", 1 ) )
), Legend Model( 7, Base( 7, 0, 0, Item ID( "RLU", 2 ) ) )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Volume" )} ),
Dispatch(
{},
"Graph Builder",
FrameBox,
{DispatchSeg( BarSeg( 1 ), {Set Width Proportion( 1 )} )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position(
{6, [-1, 2, 0, 1, 3, -1], 7, [-1, -1, -1, -1, -1, -1, -1, -1]}
)}
)
)
)
Jim