<?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 回复： When drawing bubbles, how can I set the background color to different colors according to the number of rows? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579962#M78719</link>
    <description>&lt;P&gt;You could use reference lines with allow range enabled&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

bp = dt &amp;lt;&amp;lt; Bubble Plot(
	X(Transform Column("Row", Formula(Row()))),
	Y(:height),
	Sizes(:weight),
	Coloring(:sex),
	Title Position(0, 0)
);

wait(1);

axisbox = Report(bp)[axis box(2)];
axisbox &amp;lt;&amp;lt; Add Ref Line({0, 20}, "Solid", "Red", "", 1, 0.25);
axisbox &amp;lt;&amp;lt; Add Ref Line({20, 40}, "Solid", "Medium Light Blue", "", 1, 0.25);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or then graphic scripts but I think reference lines with range are easier in this case.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2022 11:38:20 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-12-11T11:38:20Z</dc:date>
    <item>
      <title>When drawing bubbles, how can I set the background color to different colors according to the number of rows?</title>
      <link>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579739#M78700</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, set lines 1-20 and 21-40 to different background colors.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");

p1=dt&amp;lt;&amp;lt;Bubble Plot(
	X( Transform Column( "Row", Formula( Row() ) ) ),
	Y( :height ),
	Sizes( :weight ),
	Coloring( :sex ),
	Title Position( 0, 0 ),
	SendToReport(
		Dispatch(
			{},
			"1",
			ScaleBox,
			{Min( 0 ), Max( 45 ), Inc( 5 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"2",
			ScaleBox,
			{Min( 50 ), Max( 72.5 ), Inc( 5 ), Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Bubble Plot",
			FrameBox,
			{Frame Size( 565, 360 ), Background Color( 76 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-12-10_08-44-26.png" style="width: 722px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48139iE40636A31DAF2B5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-12-10_08-44-26.png" alt="2022-12-10_08-44-26.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:04:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579739#M78700</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T16:04:28Z</dc:date>
    </item>
    <item>
      <title>回复： When drawing bubbles, how can I set the background color to different colors according to the number of rows?</title>
      <link>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579775#M78701</link>
      <description>&lt;P&gt;Not work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Fill Color("blue"); Rect( 1, 80 , 20 ,50,  1);,&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Dec 2022 09:04:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579775#M78701</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-12-10T09:04:35Z</dc:date>
    </item>
    <item>
      <title>回复： When drawing bubbles, how can I set the background color to different colors according to the number of rows?</title>
      <link>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579962#M78719</link>
      <description>&lt;P&gt;You could use reference lines with allow range enabled&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

bp = dt &amp;lt;&amp;lt; Bubble Plot(
	X(Transform Column("Row", Formula(Row()))),
	Y(:height),
	Sizes(:weight),
	Coloring(:sex),
	Title Position(0, 0)
);

wait(1);

axisbox = Report(bp)[axis box(2)];
axisbox &amp;lt;&amp;lt; Add Ref Line({0, 20}, "Solid", "Red", "", 1, 0.25);
axisbox &amp;lt;&amp;lt; Add Ref Line({20, 40}, "Solid", "Medium Light Blue", "", 1, 0.25);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or then graphic scripts but I think reference lines with range are easier in this case.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 11:38:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579962#M78719</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-12-11T11:38:20Z</dc:date>
    </item>
    <item>
      <title>回复： When drawing bubbles, how can I set the background color to different colors according to the number of rows?</title>
      <link>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579973#M78722</link>
      <description>&lt;P class=""&gt;Thank you for your help!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
bp = dt &amp;lt;&amp;lt;Graph Builder(
	Size( 532, 453 ),
	Show Control Panel( 0 ),
	Variables(
		X( Transform Column( "Row", Formula( Row() ) ) ),
		Y( :height ),
		Color( :sex ),
		Size( :height )
	),
	Elements( Points( X, Y, Legend( 17 ) ) )
);&lt;BR /&gt;&lt;BR /&gt;axisbox = Report(bp)[axis box(1)];&lt;BR /&gt;axisbox &amp;lt;&amp;lt; Add Ref Line({0, 20}, "Solid", "Red", "", 1, 0.25);&lt;BR /&gt;axisbox &amp;lt;&amp;lt; Add Ref Line({20, 40}, "Solid", "Medium Light Blue", "", 1, 0.25);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 14:11:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-drawing-bubbles-how-can-I-set-the-background-color-to/m-p/579973#M78722</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-12-11T14:11:43Z</dc:date>
    </item>
  </channel>
</rss>

