<?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: Creating an option to set Y axis to zero dynamically in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Creating-an-option-to-set-Y-axis-to-zero-dynamically/m-p/782490#M1231</link>
    <description>&lt;P&gt;Crude method that comes to mind - no idea on if this would work and I'd definitely wait and see if there was a better solution, this is a hack at best.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add another column that is Y/N or a binary flag which is your control to set to 0.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;For each series in your data add a 0,0 data point.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;By default, set the control to not include that data point.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;If they click the button the 0/0 point gets displayed, forcing the X/Y Axis to reset. If you need just one axis, you'll need to adjust the other value to be the minimum of the data.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're doing trends, this may need to be a new series that gets overlaid (as white so it doesn't show) to get that affect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like I said, not tested, no idea if it would work, but how I might try.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 00:06:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-11-26T00:06:54Z</dc:date>
    <item>
      <title>Creating an option to set Y axis to zero dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Creating-an-option-to-set-Y-axis-to-zero-dynamically/m-p/782488#M1230</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if anyone can help with a clever solution for this.&lt;/P&gt;&lt;P&gt;We created a few dashboards and the graphs have the Y axis set to automatic, as they differ a lot and we can't predict a range. So, this needs to stay as automatic. However, I would like to add a button/tick box close to the Y axis, where users can just click and the graph Y axis is then set to zero, in case they need to see the whole graph and how the trendlines are looking if you zoom out. It is a time series with number of events on Y and Months on X.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not an option to open a new one as a pop up because there are too many. It should be something that just changes the graph or adjusts the axis, without reloading the whole page. Or maybe a + and - slider that alters the Y axis range?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible or is there a clever way to solve this?&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;On SAS® Viya® release:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;V.03.04.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Your help is much appreciated. Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 00:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Creating-an-option-to-set-Y-axis-to-zero-dynamically/m-p/782488#M1230</guid>
      <dc:creator>maxwill</dc:creator>
      <dc:date>2021-11-26T00:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an option to set Y axis to zero dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Creating-an-option-to-set-Y-axis-to-zero-dynamically/m-p/782490#M1231</link>
      <description>&lt;P&gt;Crude method that comes to mind - no idea on if this would work and I'd definitely wait and see if there was a better solution, this is a hack at best.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add another column that is Y/N or a binary flag which is your control to set to 0.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;For each series in your data add a 0,0 data point.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;By default, set the control to not include that data point.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;If they click the button the 0/0 point gets displayed, forcing the X/Y Axis to reset. If you need just one axis, you'll need to adjust the other value to be the minimum of the data.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're doing trends, this may need to be a new series that gets overlaid (as white so it doesn't show) to get that affect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like I said, not tested, no idea if it would work, but how I might try.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 00:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Creating-an-option-to-set-Y-axis-to-zero-dynamically/m-p/782490#M1231</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-26T00:06:54Z</dc:date>
    </item>
  </channel>
</rss>

