<?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 Dynamic y axis range in variability chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Dynamic-y-axis-range-in-variability-chart/m-p/791294#M97032</link>
    <description>&lt;P&gt;I have the following variability chart and I am implementing that by Parameter&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nebs = {};&lt;BR /&gt;For Each({pChoice}, parameterChoice,&lt;BR /&gt;lub &amp;lt;&amp;lt; append(Text Box(pChoice));&lt;BR /&gt;lub &amp;lt;&amp;lt; append(neb = Number Edit Box(42));&lt;BR /&gt;Insert Into(nebs, neb);&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vals = nebs &amp;lt;&amp;lt; get;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;varchart = Variability Chart(
					Y( :Value),
					X( :Time Point, :Storage Condition, :Level ),
					Std Dev Chart( 0 ),
					By( :Parameter ),
					SendToReport(
						Dispatch(
							{"Variability Chart for Value"},
							"Variability Chart",
							FrameBox,
							{Row Legend(
								:Label,
								Color( 1 ),
								Color Theme( "JMP Default" ),
								Marker( 0 ),
								Marker Theme( "" ),
								Continuous Scale( 0 ),
								Reverse Scale( 0 ),
								Excluded Rows( 0 )
							)}
						)
					)
				)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then, some lines below in the script I add reference lines in each chart using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obs = varchart &amp;lt;&amp;lt; XPath("//OutlineBox[contains(text(), 'Variability Chart for')]");
		count = 0;
		For Each({ob}, obs,
					
			count = count + 1;
			Report( varchart[count] )[AxisBox(1)] &amp;lt;&amp;lt; Add Ref Line(vals[count], "Dotted", Red, "AC", 2);				
				);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But some Reference lines can not be observed in the chart because of the scaling of the y axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to change the scaling for each parameter in this loop so that the max of the y axis range is the maximum between the reference line value or the maximum value of the parameter plus 0.1&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 09:24:35 GMT</pubDate>
    <dc:creator>Georgios_Tsim</dc:creator>
    <dc:date>2024-08-30T09:24:35Z</dc:date>
    <item>
      <title>Dynamic y axis range in variability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Dynamic-y-axis-range-in-variability-chart/m-p/791294#M97032</link>
      <description>&lt;P&gt;I have the following variability chart and I am implementing that by Parameter&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nebs = {};&lt;BR /&gt;For Each({pChoice}, parameterChoice,&lt;BR /&gt;lub &amp;lt;&amp;lt; append(Text Box(pChoice));&lt;BR /&gt;lub &amp;lt;&amp;lt; append(neb = Number Edit Box(42));&lt;BR /&gt;Insert Into(nebs, neb);&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vals = nebs &amp;lt;&amp;lt; get;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;varchart = Variability Chart(
					Y( :Value),
					X( :Time Point, :Storage Condition, :Level ),
					Std Dev Chart( 0 ),
					By( :Parameter ),
					SendToReport(
						Dispatch(
							{"Variability Chart for Value"},
							"Variability Chart",
							FrameBox,
							{Row Legend(
								:Label,
								Color( 1 ),
								Color Theme( "JMP Default" ),
								Marker( 0 ),
								Marker Theme( "" ),
								Continuous Scale( 0 ),
								Reverse Scale( 0 ),
								Excluded Rows( 0 )
							)}
						)
					)
				)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then, some lines below in the script I add reference lines in each chart using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obs = varchart &amp;lt;&amp;lt; XPath("//OutlineBox[contains(text(), 'Variability Chart for')]");
		count = 0;
		For Each({ob}, obs,
					
			count = count + 1;
			Report( varchart[count] )[AxisBox(1)] &amp;lt;&amp;lt; Add Ref Line(vals[count], "Dotted", Red, "AC", 2);				
				);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But some Reference lines can not be observed in the chart because of the scaling of the y axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to change the scaling for each parameter in this loop so that the max of the y axis range is the maximum between the reference line value or the maximum value of the parameter plus 0.1&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 09:24:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dynamic-y-axis-range-in-variability-chart/m-p/791294#M97032</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-08-30T09:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic y axis range in variability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Dynamic-y-axis-range-in-variability-chart/m-p/791306#M97033</link>
      <description>&lt;P&gt;You can send &amp;lt;&amp;lt; Min / &amp;lt;&amp;lt; Max to axisbox to change it's min / max values.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725009929014.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67729i8D960D29BC8157C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1725009929014.png" alt="jthi_0-1725009929014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To get the min/max value of column for example by using Col Min/Col Max functions. Optionally you can try to access the marker segment and extract the values from utilizing&amp;nbsp; &amp;lt;&amp;lt; Get Y Values&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1725010062706.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67730i135B8803BE968EF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1725010062706.png" alt="jthi_1-1725010062706.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 09:28:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dynamic-y-axis-range-in-variability-chart/m-p/791306#M97033</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-30T09:28:39Z</dc:date>
    </item>
  </channel>
</rss>

