I was able to accomplish what you want by making a couple of changes to your approach.
- Create your chart, but do not select Confidence Diamonds
- Right click on the chart and select Add=>Box Plot, to add a second Box Plot
- In the variables for the 2nd Box Plot, expand the section and unselect Color Month
- Now Right Click on the chart and select the 2nd Box Plot and select Confidence Diamonds
- Finally, go to the legend and Right Click the Sales and change the Line Color to black
Here is the script from the chart
Names Default To Here( 1 );
dt = Current Data Table();
Graph Builder(
Variables( X( :Month ), Y( :Sales ), Color( :Month ) ),
Elements(
Box Plot( X, Y, Legend( 4 ), Box Style( "Solid" ), Fences( 0 ) ),
Box Plot( X, Y, Color( 0 ), Legend( 5 ), Confidence Diamond( 1 ) )
),
SendToReport(
Dispatch( {"Box Plot"[2]}, "", OutlineBox, {Close( 0 )} ),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
5,
Properties( 0, {Line Color( 0 )}, Item ID( "Sales", 1 ) )
)}
)
)
);
Jim