<?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 回复： How do add different background colors to this drawing in JMP? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/736862#M91776</link>
    <description>&lt;P&gt;Create column with all values of 70, create graph builder with bar chart and line chart (x: weight, yaxis: height + column 7, overlay: than, color: sex) and modify line chart settings (fill to fill below), disable x axis from line chart, modify legend as needed. You should be able to track most of the changes just be checking out the graph builder and what has been set and where&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1710954185426.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62432i1DA744822FB877FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1710954185426.png" alt="jthi_0-1710954185426.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 17:03:33 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-03-20T17:03:33Z</dc:date>
    <item>
      <title>How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718542#M90147</link>
      <description>&lt;P&gt;Use the data from Big Class.jmp to draw pictures according to the following JSL,&lt;BR /&gt;The X-axis is grouped by age and compared according to the number of occurrences of each age and the average of the total number of ages&lt;BR /&gt;If the number of occurrences of this age is greater than the average, the background color of this age column is red;Otherwise it is green.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
d2 = dt &amp;lt;&amp;lt; Summary( Group( age ), Freq( "0" ), Weight( "0" ), Link to original data table( 0 ) );
Column( d2, 2 ) &amp;lt;&amp;lt; set name( "co" );
s = Median( d2[0, 2] );
ca = "than";
New Column( ca );
Column( ca ) &amp;lt;&amp;lt; Formula( co &amp;gt; s );
d2 &amp;lt;&amp;lt; run formulas;
Column( ca ) &amp;lt;&amp;lt; deleteFormula;
dt &amp;lt;&amp;lt; Update( With( d2 ), Match Columns( age = age ), Add Columns from Update table( than ) );
p1 = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :weight ), Y( :height ), Group X( :age ), Color( :sex ) ),
	Elements( Bar( X, Y, Legend( 5 ), Response Axis( "X" ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-01-27_20-37-29.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60646iDF4F99D3A36F837B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-01-27_20-37-29.png" alt="2024-01-27_20-37-29.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 12:51:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718542#M90147</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-01-27T12:51:47Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718544#M90148</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This effect、Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-01-27_20-37-29.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60647i7148A55B0C76A375/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-01-27_20-37-29.png" alt="2024-01-27_20-37-29.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 12:58:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718544#M90148</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-01-27T12:58:37Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718546#M90149</link>
      <description>&lt;P&gt;In addition, how to mark ① a place on the graph, how to write JSL so that the "Hover label" function of clicking there can obtain the name, height and other data of this graph position to write different variables&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="2024-01-27_21-00-52.png" style="width: 714px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60648iC087A32EC405350D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-01-27_21-00-52.png" alt="2024-01-27_21-00-52.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 13:11:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718546#M90149</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-01-27T13:11:18Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718549#M90151</link>
      <description>&lt;P&gt;One option is to create one additional column to your table which indicates the maximum value possible and then create a line chart using that with fill below enabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column 7 has just value 70 in all rows&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1706361888217.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60649i33165EAC08516516/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1706361888217.png" alt="jthi_0-1706361888217.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size(570, 798),
	Variables(
		X(:weight),
		Y(:height),
		Y(:Column 7, Position(1)),
		Group X(:age),
		Overlay(:than),
		Color(:sex)
	),
	Elements(
		Bar(X, Y(1), Legend(5), Response Axis("X")),
		Line(Y(2), Color(0), Legend(8), Fill("Fill Below"))
	),
	SendToReport(
		Dispatch({"Bar"}, "", OutlineBox, {Close(0)}),
		Dispatch({"Line"}, "", OutlineBox, {Close(0)}),
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Min(0), Max(70.3382899628253), Inc(10), Minor Ticks(0)}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				8,
				Properties(0, {Line Color(35)}, Item ID("0", 1)),
				Properties(-1, {Line Color(35)}, Item ID("Mean(Column 7)", 1))
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jan 2024 13:25:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718549#M90151</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-01-27T13:25:24Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718551#M90152</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-01-27_21-51-37.png" style="width: 869px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60650iA286BDBE99F311A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-01-27_21-51-37.png" alt="2024-01-27_21-51-37.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 13:52:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/718551#M90152</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-01-27T13:52:21Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/736766#M91759</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;What are the specific steps of manual operation of this JSL?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank jthi !&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:02:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/736766#M91759</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-03-20T13:02:07Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/736862#M91776</link>
      <description>&lt;P&gt;Create column with all values of 70, create graph builder with bar chart and line chart (x: weight, yaxis: height + column 7, overlay: than, color: sex) and modify line chart settings (fill to fill below), disable x axis from line chart, modify legend as needed. You should be able to track most of the changes just be checking out the graph builder and what has been set and where&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1710954185426.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62432i1DA744822FB877FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1710954185426.png" alt="jthi_0-1710954185426.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 17:03:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/736862#M91776</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-20T17:03:33Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/737037#M91793</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;How can I make both a bar chart and a line chart on the Y-axis?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-03-21_07-21-38.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62466iBA977500BE7A2087/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-03-21_07-21-38.png" alt="2024-03-21_07-21-38.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 23:25:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/737037#M91793</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-03-20T23:25:37Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/737038#M91794</link>
      <description>&lt;P&gt;Right click on the graph, and select Add=&amp;gt;Line&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 23:27:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/737038#M91794</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-20T23:27:37Z</dc:date>
    </item>
    <item>
      <title>回复： How do add different background colors to this drawing in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/737040#M91795</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-03-21_07-43-27.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62467i00C0CF19788D5931/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-03-21_07-43-27.png" alt="2024-03-21_07-43-27.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 23:44:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-add-different-background-colors-to-this-drawing-in-JMP/m-p/737040#M91795</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-03-20T23:44:38Z</dc:date>
    </item>
  </channel>
</rss>

