<?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: If statement inside a graph with recalc option in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/If-statement-inside-a-graph-with-recalc-option/m-p/738598#M92005</link>
    <description>&lt;P&gt;Those are evaluated when the plot is created and they won't be re-evaluated later. You could (maybe) use graphic script to display the lines. Even easier could be to use Graph Builder and add extra lines to your data with extra columns to indicate the reference line values.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 14:30:50 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-03-25T14:30:50Z</dc:date>
    <item>
      <title>If statement inside a graph with recalc option</title>
      <link>https://community.jmp.com/t5/Discussions/If-statement-inside-a-graph-with-recalc-option/m-p/738546#M92000</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a graph that I want to add target line per if statement (depends on user filters).&lt;/P&gt;&lt;P&gt;1. how to apply IF inside the graph code?&lt;/P&gt;&lt;P&gt;2. how to make the graph recalc and create the needed ref line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example (the bold is not working):&lt;/P&gt;&lt;DIV&gt;Bivariate(&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Y( :raw_value ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;X( :ah_attribute_value ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Automatic Recalc( 1 ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SendToReport(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;if (:FE_BE[N Row(dt)] == "FE", &lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;Dispatch({},&amp;nbsp; "2", ScaleBox, {Add Ref Line( 10, "DashDot", "Red", "2 weeks", 2)}),&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;Dispatch({},&amp;nbsp; "2", ScaleBox, {Add Ref Line( 5, "DashDot", "Red", "2 weeks", 2)})&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;),&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dispatch(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"1",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ScaleBox,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{Label Row( Label Orientation( "Angled" ) )}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Dispatch(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Bivar Plot",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FrameBox,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{Frame Size( 472, 387 ),Row Legend(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;chamber,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Color( 1 ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Color Theme( "JMP Default" ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Marker( 0 ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Marker Theme( "Alphanumeric" ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Continuous Scale( 0 ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Reverse Scale( 0 ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Excluded Rows( 0 )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Mar 2024 12:06:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-statement-inside-a-graph-with-recalc-option/m-p/738546#M92000</guid>
      <dc:creator>Hamal22</dc:creator>
      <dc:date>2024-03-25T12:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: If statement inside a graph with recalc option</title>
      <link>https://community.jmp.com/t5/Discussions/If-statement-inside-a-graph-with-recalc-option/m-p/738598#M92005</link>
      <description>&lt;P&gt;Those are evaluated when the plot is created and they won't be re-evaluated later. You could (maybe) use graphic script to display the lines. Even easier could be to use Graph Builder and add extra lines to your data with extra columns to indicate the reference line values.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 14:30:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-statement-inside-a-graph-with-recalc-option/m-p/738598#M92005</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-25T14:30:50Z</dc:date>
    </item>
  </channel>
</rss>

