<?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 Mask Text Caption Box in Graph Builder for a subset of sample in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/610676#M81135</link>
    <description>&lt;P&gt;Here is an example where I am calculating % difference between 24 hours and 0 hours for a Script and I would like to mask the 0 hours mean results in the Caption Box since it is equal to 0%. I was able to manually change each text to white by editing but I am wondering if I can do that within the script where I can specify that for each Caption box with "0 hrs" to remove/mask the text. Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnrelatedRange6_4-1678476133689.png" style="width: 670px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50926iE4D1803867431FDA/image-dimensions/670x262?v=v2" width="670" height="262" role="button" title="UnrelatedRange6_4-1678476133689.png" alt="UnrelatedRange6_4-1678476133689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After manual editing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnrelatedRange6_3-1678476106864.png" style="width: 678px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50925iBC270C24978E1594/image-dimensions/678x243?v=v2" width="678" height="243" role="button" title="UnrelatedRange6_3-1678476106864.png" alt="UnrelatedRange6_3-1678476106864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attached the table with the script in this message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:29:57 GMT</pubDate>
    <dc:creator>UnrelatedRange6</dc:creator>
    <dc:date>2023-06-08T16:29:57Z</dc:date>
    <item>
      <title>Mask Text Caption Box in Graph Builder for a subset of sample</title>
      <link>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/610676#M81135</link>
      <description>&lt;P&gt;Here is an example where I am calculating % difference between 24 hours and 0 hours for a Script and I would like to mask the 0 hours mean results in the Caption Box since it is equal to 0%. I was able to manually change each text to white by editing but I am wondering if I can do that within the script where I can specify that for each Caption box with "0 hrs" to remove/mask the text. Thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnrelatedRange6_4-1678476133689.png" style="width: 670px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50926iE4D1803867431FDA/image-dimensions/670x262?v=v2" width="670" height="262" role="button" title="UnrelatedRange6_4-1678476133689.png" alt="UnrelatedRange6_4-1678476133689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After manual editing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnrelatedRange6_3-1678476106864.png" style="width: 678px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50925iBC270C24978E1594/image-dimensions/678x243?v=v2" width="678" height="243" role="button" title="UnrelatedRange6_3-1678476106864.png" alt="UnrelatedRange6_3-1678476106864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attached the table with the script in this message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:29:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/610676#M81135</guid>
      <dc:creator>UnrelatedRange6</dc:creator>
      <dc:date>2023-06-08T16:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mask Text Caption Box in Graph Builder for a subset of sample</title>
      <link>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/611649#M81191</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do this as follows:&lt;/P&gt;
&lt;P&gt;1) Get a handle to graph builder in your original script. For example, change line 1 to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2) Add the following lines at the end of your script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cr = Report( gb );
ts = cr[Outline Box( 1 )] &amp;lt;&amp;lt; xpath( "//TextSeg" );       //get a list of the textSegs
ts[Loc( ts &amp;lt;&amp;lt; get text, "-0.0%" )] &amp;lt;&amp;lt; set text( "" );    //set blanks where text is -0.0%
ts[Loc( ts &amp;lt;&amp;lt; get text, "0.0%" )] &amp;lt;&amp;lt; set text( "" );     //set blanks where text is 0.0%
cr &amp;lt;&amp;lt; inval;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//refresh&amp;nbsp;display&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_0-1678768598776.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50993iD0CA55DA4DA627AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_0-1678768598776.png" alt="brady_brady_0-1678768598776.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 04:37:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/611649#M81191</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2023-03-14T04:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mask Text Caption Box in Graph Builder for a subset of sample</title>
      <link>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/611869#M81219</link>
      <description>&lt;P&gt;Hi brady_brady,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the solution. So this caption box is called "Outline Box( 1 )"? How can you find this information in JMP?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:45:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/611869#M81219</guid>
      <dc:creator>UnrelatedRange6</dc:creator>
      <dc:date>2023-03-14T16:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mask Text Caption Box in Graph Builder for a subset of sample</title>
      <link>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/612074#M81231</link>
      <description>&lt;P&gt;You'll need to get familiar with how JMP arranges reports using the "Display Tree". To see what the display tree contains for a given report, you can view the tree by using "Show Tree Structure". In this example, do you see the little gray triangle, just to the left of Graph Builder's red triangle? Right-click on that and select Edit &amp;gt; Show Tree Structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll get a window linked to the Graph Builder window, such that clicking in either selects the corresponding element in the other. You'll also want to learn to use the Xpath ( ) command in JSL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 02:02:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mask-Text-Caption-Box-in-Graph-Builder-for-a-subset-of-sample/m-p/612074#M81231</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2023-03-15T02:02:41Z</dc:date>
    </item>
  </channel>
</rss>

