<?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 I get my colors to stay consistent for bar graphs when using filters - using JMP 17.2.0 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-my-colors-to-stay-consistent-for-bar-graphs-when/m-p/777776#M95932</link>
    <description>&lt;P&gt;I have established value colors for the column, using Column Properties&amp;gt;Value Colors.&amp;nbsp; I have built it into a script, similar to this.&lt;/P&gt;
&lt;P&gt;dt:"(Group)Type"n &amp;lt;&amp;lt; Set Property(&lt;BR /&gt;Value Colors,&lt;BR /&gt;{"("A" = 16, "B" = 24, "C" = 56, "D" = 8, "E" = 40, "F" = 72, and so on. (There are 36 total cell values that I am identifying in the list)&lt;/P&gt;
&lt;P&gt;Then I run the script for the graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Graph Builder(
	Size(1460, 625),
	Show Control Panel(0),
	Legend Position("Right"),
	Level Spacing Color("Medium Light Gray"),
	Graph Spacing(5),
	Spacing Borders(1),
	Variables(X(:Year), X(:Qtr, Position(1)), Y(:"(Group)Type"n), Group X(:Location)),
	Elements(Mosaic(X(1), X(2), Y, Legend(7), Cell Labeling("Label by Percent"))),
	Local Data Filter(Conditional, Add Filter(columns(:Location, :Year)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;Edit 2024-07-31 (jthi): added jsl formatting using &amp;lt;JSL&amp;gt; button&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will generally run with the colors I expected, but if using the filters, the colors may change - some of the colors remain as expected.&amp;nbsp; As though it is ignoring the column properties set for the value.&lt;/P&gt;
&lt;P&gt;Is there a limit on the number of column values you can specify a particular column color?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made changes through the process to make sure I'm not using the same color number to more than just one value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;JMP 17.2.0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 17:35:27 GMT</pubDate>
    <dc:creator>GLynnWarren</dc:creator>
    <dc:date>2024-07-31T17:35:27Z</dc:date>
    <item>
      <title>How do I get my colors to stay consistent for bar graphs when using filters - using JMP 17.2.0</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-my-colors-to-stay-consistent-for-bar-graphs-when/m-p/777776#M95932</link>
      <description>&lt;P&gt;I have established value colors for the column, using Column Properties&amp;gt;Value Colors.&amp;nbsp; I have built it into a script, similar to this.&lt;/P&gt;
&lt;P&gt;dt:"(Group)Type"n &amp;lt;&amp;lt; Set Property(&lt;BR /&gt;Value Colors,&lt;BR /&gt;{"("A" = 16, "B" = 24, "C" = 56, "D" = 8, "E" = 40, "F" = 72, and so on. (There are 36 total cell values that I am identifying in the list)&lt;/P&gt;
&lt;P&gt;Then I run the script for the graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Graph Builder(
	Size(1460, 625),
	Show Control Panel(0),
	Legend Position("Right"),
	Level Spacing Color("Medium Light Gray"),
	Graph Spacing(5),
	Spacing Borders(1),
	Variables(X(:Year), X(:Qtr, Position(1)), Y(:"(Group)Type"n), Group X(:Location)),
	Elements(Mosaic(X(1), X(2), Y, Legend(7), Cell Labeling("Label by Percent"))),
	Local Data Filter(Conditional, Add Filter(columns(:Location, :Year)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;Edit 2024-07-31 (jthi): added jsl formatting using &amp;lt;JSL&amp;gt; button&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will generally run with the colors I expected, but if using the filters, the colors may change - some of the colors remain as expected.&amp;nbsp; As though it is ignoring the column properties set for the value.&lt;/P&gt;
&lt;P&gt;Is there a limit on the number of column values you can specify a particular column color?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made changes through the process to make sure I'm not using the same color number to more than just one value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;JMP 17.2.0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:35:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-my-colors-to-stay-consistent-for-bar-graphs-when/m-p/777776#M95932</guid>
      <dc:creator>GLynnWarren</dc:creator>
      <dc:date>2024-07-31T17:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get my colors to stay consistent for bar graphs when using filters - using JMP 17.2.0</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-my-colors-to-stay-consistent-for-bar-graphs-when/m-p/777789#M95935</link>
      <description>&lt;P&gt;Are you sure value colors are set properly for all values? Also, try if adding (Group)Type column to Color helps.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:38:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-my-colors-to-stay-consistent-for-bar-graphs-when/m-p/777789#M95935</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-31T17:38:25Z</dc:date>
    </item>
  </channel>
</rss>

