<?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: Change Single Bar Color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/684674#M87058</link>
    <description>&lt;P&gt;Sometimes I have the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 6 elements in column A and 2 elements in column B, it's still fun to color the 6x2 distinct subsets manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there are other cases where it takes a while to manually assign the correct colors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;application case:&lt;BR /&gt;- use column A as color&lt;/P&gt;&lt;P&gt;- use column B = excluded() to give excluded points a grey color&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fur such applications,&amp;nbsp;&lt;LI-MESSAGE title="GraphBuilder: Overwrite Dropzone" uid="614834" url="https://community.jmp.com/t5/JMP-Wish-List/GraphBuilder-Overwrite-Dropzone/m-p/614834#U614834" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;could be a powerful feature.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2023 20:20:49 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-10-06T20:20:49Z</dc:date>
    <item>
      <title>Change Single Bar Color</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/107952#M39273</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a seemingly simple question that I cannot find the answer to. I have made a bar graph and would like to custimze the each bar graph fill color individually. The graph is cost on y axis and car make on x axis, with each car make having two years. The reason is I have a general fill color depending on the year (2017&amp;amp;2018), but would like to highlight certain car make a different color (for example Honda 2017 would be different from the rest of the 2017 car makes, and Honda 2018 would be different from the rest of the 2018 car makes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this easily&amp;nbsp;on either graph builde or thorugh code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:59:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/107952#M39273</guid>
      <dc:creator>GERblob</dc:creator>
      <dc:date>2019-01-24T15:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change Single Bar Color</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/107956#M39277</link>
      <description>&lt;P&gt;One solution is to create a new column which is the concatenation of your Year and Car columns&lt;BR /&gt;combine = char(:year) || " " || :car;&lt;BR /&gt;&lt;BR /&gt;Then use this new column as the color column in your Graph Builder. You can then make each individual bar whatever colors you want them to be.&amp;nbsp; Below is a similar example using the Big Class sample data table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="colors.PNG" style="width: 955px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15224i7B8BB5189F319559/image-size/large?v=v2&amp;amp;px=999" role="button" title="colors.PNG" alt="colors.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:00:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/107956#M39277</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-24T17:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change Single Bar Color</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/107995#M39294</link>
      <description>&lt;P&gt;The script below extends Jim's,&amp;nbsp; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, excellent suggestion, demonstrating how to&amp;nbsp; set specific colors using JSL to modify the &lt;STRONG&gt;Legend Model.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = open("$sample_data/big class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
    show control panel(0),
	Variables(
		X( :age ),
		X( :sex, Position( 1 ) ),
		Y( :height ),
		Color(
			Transform Column(
				"Transform[age]",
				Character,
				Nominal,
				Formula( (Char( :age ) || " ") || :sex )
			)
		)
	),
	Elements( Bar( X( 1 ), X( 2 ), Y, Legend( 12 ) ) )
);

//note Item ID count begins with 0

gb &amp;lt;&amp;lt; 	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				//12,
				Properties( 0, {Fill Color( 5 )}, Item ID( "12 F", 1 ) ),
				Properties( 1, {Fill Color( 5 )}, Item ID( "12 M", 1 ) ),
				Properties( 2, {Fill Color( 20 )}, Item ID( "13 F", 1 ) ),
				Properties( 3, {Fill Color( 20 )}, Item ID( "13 M", 1 ) ),
				Properties( 4, {Fill Color( 6 )}, Item ID( "14 F", 1 ) ),
				Properties( 5, {Fill Color( 6 )}, Item ID( "14 M", 1 ) ),
				Properties( 6, {Fill Color( 27 )}, Item ID( "15 F", 1 ) ),
				Properties( 7, {Fill Color( 27 )}, Item ID( "15 M", 1 ) ),
				Properties( 8, {Fill Color( 26 )}, Item ID( "16 F", 1 ) ),
				Properties( 9, {Fill Color( 26 )}, Item ID( "16 M", 1 ) ),
				Properties( 10, {Fill Color( 12 )}, Item ID( "17 F", 1 ) ),
				Properties( 11, {Fill Color( 12 )}, Item ID( "17 M", 1 ) )
			)}
		)
	);



&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 684px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15233i94C13DFFCE348BCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 06:31:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/107995#M39294</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-01-25T06:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change Single Bar Color</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/684674#M87058</link>
      <description>&lt;P&gt;Sometimes I have the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 6 elements in column A and 2 elements in column B, it's still fun to color the 6x2 distinct subsets manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there are other cases where it takes a while to manually assign the correct colors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;application case:&lt;BR /&gt;- use column A as color&lt;/P&gt;&lt;P&gt;- use column B = excluded() to give excluded points a grey color&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fur such applications,&amp;nbsp;&lt;LI-MESSAGE title="GraphBuilder: Overwrite Dropzone" uid="614834" url="https://community.jmp.com/t5/JMP-Wish-List/GraphBuilder-Overwrite-Dropzone/m-p/614834#U614834" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;could be a powerful feature.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 20:20:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Single-Bar-Color/m-p/684674#M87058</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-06T20:20:49Z</dc:date>
    </item>
  </channel>
</rss>

