<?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 Value Colors - same color for a block of values? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654485#M84369</link>
    <description>&lt;P&gt;When defining colors via value colors, is there an easy way to define the same color for a block of (e.g. 100) adjacent values?&lt;/P&gt;&lt;P&gt;I can select the block via Shift Click, but how to apply the color.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1688150543205.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54312i48CE5D1A32CD9BFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1688150543205.png" alt="hogi_1-1688150543205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Selecting the respective rows and changing the color manually is no option because I want the rule to be applied dynamically after data changes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1688150530295.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54311i36D1B8A17C803298/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1688150530295.png" alt="hogi_0-1688150530295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 18:42:39 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-30T18:42:39Z</dc:date>
    <item>
      <title>Value Colors - same color for a block of values?</title>
      <link>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654485#M84369</link>
      <description>&lt;P&gt;When defining colors via value colors, is there an easy way to define the same color for a block of (e.g. 100) adjacent values?&lt;/P&gt;&lt;P&gt;I can select the block via Shift Click, but how to apply the color.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1688150543205.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54312i48CE5D1A32CD9BFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1688150543205.png" alt="hogi_1-1688150543205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Selecting the respective rows and changing the color manually is no option because I want the rule to be applied dynamically after data changes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1688150530295.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54311i36D1B8A17C803298/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1688150530295.png" alt="hogi_0-1688150530295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:42:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654485#M84369</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-30T18:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Value Colors - same color for a block of values?</title>
      <link>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654832#M84394</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Considering your advanced level in this Discussion forum, I am unsure if this suggestion will help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you considered creating a grouping formula (e.g., Quantiles) to which you could assign colors?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	:X &amp;lt;= Col Quantile( :X, 0.25 ), 1,
	Col Quantile( :X, 0.25 ) &amp;lt; :X &amp;lt;= Col Quantile( :X, 0.5 ), 2,
	Col Quantile( :X, 0.5 ) &amp;lt; :X &amp;lt;= Col Quantile( :X, 0.75 ), 3,
	4
);&lt;BR /&gt;&lt;BR /&gt;//&amp;nbsp;OR&amp;nbsp;a&amp;nbsp;classification&amp;nbsp;based&amp;nbsp;on&amp;nbsp;Rank&amp;nbsp;//&lt;BR /&gt;&lt;BR /&gt;Round( (Col Rank( :X ) * 10) / N Rows(), 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;These are just workarounds.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 14:38:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654832#M84394</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-07-03T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Value Colors - same color for a block of values?</title>
      <link>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654905#M84404</link>
      <description>&lt;P&gt;An auxiliary variable is a good idea, thanks :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 19:35:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654905#M84404</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-03T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Value Colors - same color for a block of values?</title>
      <link>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654906#M84405</link>
      <description>&lt;P&gt;While playing around I found out that for long lists the values in a GraphBuiler plot don't match the values defined via Value Colors (&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; TS-00045154). According to Jmp support, this is a known issue and will be fixed in Jmp 18.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6330526325112w1016h540r686" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6330526325112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6330526325112w1016h540r686');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6330526325112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workaround: define the colors via JSL:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );
locs= AssociativeArray(dt:Location &amp;lt;&amp;lt; get values) &amp;lt;&amp;lt; get Keys;
myMax=N items(locs);
colorList = Transform Each({i},As List(Transpose(1::myMax)),
                Substitute(Expr(__a__ = __b__), Expr(__a__), locs[i], Expr(__b__), -15000000 +i)
);
dt:Location &amp;lt;&amp;lt; delete property("Value Colors");
Eval(substitute(Expr(dt:Location &amp;lt;&amp;lt; Set Property("Value Colors",__cols__)),Expr(__cols__),Name Expr(colorList)));
Graph Builder(
                Size( 490, 458 ),
                Show Control Panel( 0 ),
                Variables( X( :Location ), Color( :location ) ),
                Elements( Points( X ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 19:40:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Value-Colors-same-color-for-a-block-of-values/m-p/654906#M84405</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-03T19:40:40Z</dc:date>
    </item>
  </channel>
</rss>

