<?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: drill down in graph by click on value of x axis possible? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112835#M4259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep - exactly!&amp;nbsp; You can use both at the same time ... gchart's html= option to control the drilldown for the bar segments, and the html variable in the annotate data set to control the annotated bar midpoint labels (for your drilldown for the whole bar).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 16:12:54 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2013-01-03T16:12:54Z</dc:date>
    <item>
      <title>drill down in graph by click on value of x axis possible?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112832#M4256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple subgrouped vbar chart with proc gchart. I's like to do a drill down when the user clicks on one value of the x axis (not a click an one bar). Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change the values of the x axis by putting an html link around it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.for_graph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.mydata;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxis_value = cats("&amp;lt;a href='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.sas.de"&gt;http://www.sas.de&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;",myValue,"&amp;lt;/a&amp;gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But SAS then prints the whole string from above as value under the x axis. A click has no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 08:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112832#M4256</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-03T08:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: drill down in graph by click on value of x axis possible?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112833#M4257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no built-in feature in gchart to do this, but you can suppress the default bar midpoint text labels, and then annotate them, and have html drilldown for the annotated text.&amp;nbsp; Here's an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let name=anno_xaxis;&lt;/P&gt;&lt;P&gt;filename odsout '.';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Suppress the usual midpoint axis text values,&lt;/P&gt;&lt;P&gt;and then annotate your own with html drilldown.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mydata;&lt;/P&gt;&lt;P&gt;format population comma12.0;&lt;/P&gt;&lt;P&gt;input st $ 1-2 population;&lt;/P&gt;&lt;P&gt;year=2000;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;VA&amp;nbsp; 7078515&lt;/P&gt;&lt;P&gt;NC&amp;nbsp; 8049313&lt;/P&gt;&lt;P&gt;SC&amp;nbsp; 4012012&lt;/P&gt;&lt;P&gt;GA&amp;nbsp; 8186453&lt;/P&gt;&lt;P&gt;FL 15982378&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data myanno; set mydata;&lt;/P&gt;&lt;P&gt;length html $500 text $20;&lt;/P&gt;&lt;P&gt;xsys='2'; ysys='1';&lt;/P&gt;&lt;P&gt;function='label'; &lt;/P&gt;&lt;P&gt;style='albany amt';&lt;/P&gt;&lt;P&gt;position='5';&lt;/P&gt;&lt;P&gt;midpoint=st;&lt;/P&gt;&lt;P&gt;y=-3;&lt;/P&gt;&lt;P&gt;when='a';&lt;/P&gt;&lt;P&gt;text=trim(left(st));&lt;/P&gt;&lt;P&gt;html='title='||quote(&lt;/P&gt;&lt;P&gt; 'State: '|| trim(left(st)) ||'0D'x||&lt;/P&gt;&lt;P&gt; 'Population: '|| trim(left(put(population,comma12.0)))&lt;/P&gt;&lt;P&gt; )||&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; ' href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.state.'||trim(left(lowcase(st)))||'.us"&gt;http://www.state.'||trim(left(lowcase(st)))||'.us&lt;/A&gt;&lt;SPAN&gt;"';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOPTIONS DEVICE=gif;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS LISTING CLOSE;&lt;/P&gt;&lt;P&gt;ODS HTML path=odsout body="&amp;amp;name..htm"&lt;/P&gt;&lt;P&gt;(title="GCHART w/ GIF ODS HTML Drilldown")&lt;/P&gt;&lt;P&gt;style=sasweb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions noborder gunit=pct htitle=6 htext=3.5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=none value=(color=white);&lt;/P&gt;&lt;P&gt;axis2 label=none order=(0 to 20000000 by 5000000) minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pattern v=solid color=cx43a2ca;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 "Year 2000 U.S. Census Population";&lt;/P&gt;&lt;P&gt;title2 color=gray "GCHART w/ GIF ODS HTML Drilldown";&lt;/P&gt;&lt;P&gt;footnote color=gray "(text annotated as bar labels has drilldown)";&lt;/P&gt;&lt;P&gt;proc gchart data=mydata anno=myanno; &lt;/P&gt;&lt;P&gt;vbar st / discrete &lt;/P&gt;&lt;P&gt; type=sum sumvar=population &lt;/P&gt;&lt;P&gt; ascending&lt;/P&gt;&lt;P&gt; width=8&lt;/P&gt;&lt;P&gt; maxis=axis1 &lt;/P&gt;&lt;P&gt; raxis=axis2 &lt;/P&gt;&lt;P&gt; autoref cref=gray&lt;/P&gt;&lt;P&gt; clipref &lt;/P&gt;&lt;P&gt; coutline=black &lt;/P&gt;&lt;P&gt; des='' name="&amp;amp;name" ;&amp;nbsp; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ODS HTML CLOSE;&lt;/P&gt;&lt;P&gt;ODS LISTING;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 13:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112833#M4257</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-01-03T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: drill down in graph by click on value of x axis possible?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112834#M4258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know annotate yet. But it seems worth learning.What you gave me as an example is exactly what I need. I guess I can use the html= option as addition to the above example? Because my customer wants to be able to click on the bar and the xaxis value (and also in a subgrouped bar chart by the way where clicking on a subgroup versus clicking on the value of the x axis makes sense in that I give a different target site depending on whether the user clicks on the subgroup or the xaxis value).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112834#M4258</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-03T16:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: drill down in graph by click on value of x axis possible?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112835#M4259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep - exactly!&amp;nbsp; You can use both at the same time ... gchart's html= option to control the drilldown for the bar segments, and the html variable in the annotate data set to control the annotated bar midpoint labels (for your drilldown for the whole bar).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112835#M4259</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-01-03T16:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: drill down in graph by click on value of x axis possible?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112836#M4260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Many thanx for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/drill-down-in-graph-by-click-on-value-of-x-axis-possible/m-p/112836#M4260</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-03T16:14:56Z</dc:date>
    </item>
  </channel>
</rss>

