<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change all box plot confidence diamonds colors in graph builder? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-change-all-box-plot-confidence-diamonds-colors-in-graph/m-p/482778#M72710</link>
    <description>&lt;P&gt;I was able to accomplish what you want by making a couple of changes to your approach.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1651155116661.png" style="width: 659px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42086iA9C36DE05AED86B9/image-dimensions/659x458?v=v2" width="659" height="458" role="button" title="txnelson_0-1651155116661.png" alt="txnelson_0-1651155116661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create your chart, but do not select Confidence Diamonds&lt;/LI&gt;
&lt;LI&gt;Right click on the chart and select Add=&amp;gt;Box Plot, to add a second Box Plot&lt;/LI&gt;
&lt;LI&gt;In the variables for the 2nd Box Plot, expand the section and unselect Color Month&lt;/LI&gt;
&lt;LI&gt;Now Right Click on the chart and select the 2nd Box Plot and select Confidence Diamonds&lt;/LI&gt;
&lt;LI&gt;Finally, go to the legend and Right Click the Sales and change the Line Color to black&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here is the script from the chart&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 12:07:16 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-07-25T12:07:16Z</dc:date>
    <item>
      <title>How to change all box plot confidence diamonds colors in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-all-box-plot-confidence-diamonds-colors-in-graph/m-p/482731#M72705</link>
      <description>&lt;P&gt;Hi, I want to have the confidence level color black for all my box plots in graph builder. See below example of the monthly sales datatable. I'm using the "Month" column as coloring variable, but my confidence diamonds are not visible as they have the same color as the box plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mvanderaa1_0-1651149503629.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42083i9C3AF587222F7EFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mvanderaa1_0-1651149503629.png" alt="mvanderaa1_0-1651149503629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add a loop to set the line color to black, but this changes the box plot colors to gray&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Size( 1805, 897 ),
	Show Control Panel( 0 ),
	Variables( X( :Month ), Y( :Sales ), Color( :Month ) ),
	Elements(
		Box Plot(
			X,
			Y,
			Legend( 9 ),
			Box Style( "Solid" ),
			Confidence Diamond( 1 ),
			Fences( 0 )
		)
	)
);
//tried the method of changing the confidence level line color to black for each box plot, 
//but it removes all pre-existing colors 
bpseg = gb &amp;lt;&amp;lt; Xpath( "//BoxPlotSeg" );
bpseg &amp;lt;&amp;lt; Line Color (0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mvanderaa1_1-1651149604528.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42084iC703874E2C1CF24C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mvanderaa1_1-1651149604528.png" alt="mvanderaa1_1-1651149604528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached is also the datatable, any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:24:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-all-box-plot-confidence-diamonds-colors-in-graph/m-p/482731#M72705</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2023-06-11T11:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change all box plot confidence diamonds colors in graph builder?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-all-box-plot-confidence-diamonds-colors-in-graph/m-p/482778#M72710</link>
      <description>&lt;P&gt;I was able to accomplish what you want by making a couple of changes to your approach.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1651155116661.png" style="width: 659px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42086iA9C36DE05AED86B9/image-dimensions/659x458?v=v2" width="659" height="458" role="button" title="txnelson_0-1651155116661.png" alt="txnelson_0-1651155116661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create your chart, but do not select Confidence Diamonds&lt;/LI&gt;
&lt;LI&gt;Right click on the chart and select Add=&amp;gt;Box Plot, to add a second Box Plot&lt;/LI&gt;
&lt;LI&gt;In the variables for the 2nd Box Plot, expand the section and unselect Color Month&lt;/LI&gt;
&lt;LI&gt;Now Right Click on the chart and select the 2nd Box Plot and select Confidence Diamonds&lt;/LI&gt;
&lt;LI&gt;Finally, go to the legend and Right Click the Sales and change the Line Color to black&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here is the script from the chart&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 12:07:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-all-box-plot-confidence-diamonds-colors-in-graph/m-p/482778#M72710</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-25T12:07:16Z</dc:date>
    </item>
  </channel>
</rss>

