<?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 Hiding the Y axis using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377716#M702083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a small macro to hide the X-axis on a (bar) chart when a button is pushed, as per below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13449460621715020" jivemacro_uid="_13449460621715020"&gt;&lt;P&gt;sub HideXAxis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set chart = ActiveDocument.GetSheetObject("CH111")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set p = chart.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p.ChartProperties.XAxis.Show = false&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chart.SetProperties p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to be able to hide the Y-Axis at the same time, but cannot find the syntax to do it.&amp;nbsp; Is this possible, and if so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 12:11:12 GMT</pubDate>
    <dc:creator>brian_booden</dc:creator>
    <dc:date>2012-08-14T12:11:12Z</dc:date>
    <item>
      <title>Hiding the Y axis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377716#M702083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a small macro to hide the X-axis on a (bar) chart when a button is pushed, as per below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13449460621715020" jivemacro_uid="_13449460621715020"&gt;&lt;P&gt;sub HideXAxis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set chart = ActiveDocument.GetSheetObject("CH111")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set p = chart.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p.ChartProperties.XAxis.Show = false&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chart.SetProperties p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to be able to hide the Y-Axis at the same time, but cannot find the syntax to do it.&amp;nbsp; Is this possible, and if so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 12:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377716#M702083</guid>
      <dc:creator>brian_booden</dc:creator>
      <dc:date>2012-08-14T12:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the Y axis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377717#M702084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone make any suggestions on this?&amp;nbsp; I have had another good sift through the API Guide and cannot find equivalent Y-Axis properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a manual workaround currently where i can set the the font colour of the Y-Axis to the colour of the background, effectively hiding it, using a variable as a toggle.&amp;nbsp; But i am not keen on embedding expressions into every font colour of Y-Axis objects through my application.&amp;nbsp; I would rather trigger the properties through a macro, similar to my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 08:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377717#M702084</guid>
      <dc:creator>brian_booden</dc:creator>
      <dc:date>2012-09-12T08:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the Y axis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377718#M702085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He Brian,&lt;/P&gt;&lt;P&gt;Why don't you make two different graphs. One graph with an y-axis and one graph without an y-axis.&lt;/P&gt;&lt;P&gt;Then show the graphs conditionally, dependent of the value of a variable.&lt;/P&gt;&lt;P&gt;You can create a button to change the value of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;Make a button wich sets the variable vShow to 0. And one button to set the variable vShow to 1.&lt;/P&gt;&lt;P&gt;If vShow=0 you show the graph with the y-axis. If vShow=1 you show the graph without the y-axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you don't need a macro and you can use a trigger which will still work with ajax client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gr.&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377718#M702085</guid>
      <dc:creator />
      <dc:date>2012-09-12T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the Y axis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377719#M702086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever figure this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 15:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-the-Y-axis-using-macro/m-p/377719#M702086</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-15T15:47:26Z</dc:date>
    </item>
  </channel>
</rss>

