<?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: Selecting the x-axis conditionally in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Selecting-the-x-axis-conditionally/m-p/429146#M67859</link>
    <description>&lt;P&gt;Check if column A exist in datatable (you can get all column names with &amp;lt;&amp;lt; Get Column Names("String") and then use Contains() to check the list has a specific value), then based on if it does / doesn't, create variable which has the column you want and finally add it to Platform &lt;A href="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/ta-p/48998" target="_blank" rel="noopener"&gt;with Eval(EvalExpr())&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 05:02:19 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-10-22T05:02:19Z</dc:date>
    <item>
      <title>Selecting the x-axis conditionally</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-the-x-axis-conditionally/m-p/428510#M67783</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I make JSL plot a graph such that the x-axis is column 'A' if it exists in the data table, else, it uses column 'B' as the x-axis? I feel that it could be an adaptation of the solutions in this discussion:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/If-statement-inside-graph-builder-for-SendToReport-functionality/td-p/242345" target="_blank" rel="noopener"&gt;If statement inside graph builder for SendToReport functionality&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the code I have so far (the plot is displayed in a dashboard, hence the use of 'Platform()'):&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Report9 = Platform(dt,
			       gb9 = Graph Builder(
			                 Size( 534, 456 ),
				             Show Control Panel( 0 ),
				             Fit to Window( "Maintain Aspect Ratio" ),
				             Variables( X( :A ), Y( :Name("Population") ) ),
				             Elements(
						        Points( X, Y, Legend( 7 ) ),
						        Smoother( X, Y, Legend( 8 ) )
						)
					)
				);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:40:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-the-x-axis-conditionally/m-p/428510#M67783</guid>
      <dc:creator>A_Zaid</dc:creator>
      <dc:date>2023-06-09T00:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the x-axis conditionally</title>
      <link>https://community.jmp.com/t5/Discussions/Selecting-the-x-axis-conditionally/m-p/429146#M67859</link>
      <description>&lt;P&gt;Check if column A exist in datatable (you can get all column names with &amp;lt;&amp;lt; Get Column Names("String") and then use Contains() to check the list has a specific value), then based on if it does / doesn't, create variable which has the column you want and finally add it to Platform &lt;A href="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/ta-p/48998" target="_blank" rel="noopener"&gt;with Eval(EvalExpr())&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 05:02:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Selecting-the-x-axis-conditionally/m-p/429146#M67859</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-22T05:02:19Z</dc:date>
    </item>
  </channel>
</rss>

