<?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: Resizing bar chart and customizing tool tip with imagemap in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246038#M8918</link>
    <description>&lt;P&gt;Do you have the option to switch to SG Procedures?&lt;/P&gt;
&lt;P&gt;Also, what image type are you using? Have you made sure it's SVG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#n0ezld96mjxs08n1lvoj5mtb4opl.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#n0ezld96mjxs08n1lvoj5mtb4opl.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2016 02:33:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-26T02:33:01Z</dc:date>
    <item>
      <title>Resizing bar chart and customizing tool tip with imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246027#M8917</link>
      <description>&lt;P&gt;I have a bar chart using&amp;nbsp;gchart within a stored process displayed within a portlet in SAS Information Delivery Portal 9.4, using this code (within a larger stored process):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;goptions reset=all;&lt;/P&gt;
&lt;P&gt;ods graphics on / imagemap=on&amp;nbsp;height=3in width=3in border=off;&lt;BR /&gt; &lt;BR /&gt; axis1 label=none;&lt;BR /&gt; axis2 label=none;&lt;BR /&gt; legend1 label=none; &lt;BR /&gt; title height=10pt 'FACR Generated and Recovered - Fiscal YTD' ;&lt;BR /&gt; proc gchart data=FACR_TotalYTD_Display; &lt;BR /&gt; vbar FiscalYear / noframe sumvar=FACRSum discrete subgroup=FACRType nostats maxis=axis1 raxis=axis2 legend=legend1 ;&lt;BR /&gt; format FACRSum DOLLAR14.2;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding "&lt;SPAN&gt;ods graphics on / imagemap=on&amp;nbsp;height=3in width=3in border=off;" does resize the bar chart, but the graph seems distorted and if I change the values for height and width it doesn't affect the size of the displayed chart. And when I add that line, the hover tip disappears. I've tried to add the hover tip back in with this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ROLENAME=(Year=FiscalYear) TIP=(Year Y ) tiplabel=(Year="Fiscal Year" Y="FACR YTD")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;within the proc gchart, but it doesn't work. I want to customize the displayed text for the hover text on the chart.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 00:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246027#M8917</guid>
      <dc:creator>olsengf</dc:creator>
      <dc:date>2016-01-26T00:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing bar chart and customizing tool tip with imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246038#M8918</link>
      <description>&lt;P&gt;Do you have the option to switch to SG Procedures?&lt;/P&gt;
&lt;P&gt;Also, what image type are you using? Have you made sure it's SVG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#n0ezld96mjxs08n1lvoj5mtb4opl.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#n0ezld96mjxs08n1lvoj5mtb4opl.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 02:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246038#M8918</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-26T02:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing bar chart and customizing tool tip with imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246045#M8919</link>
      <description>&lt;P&gt;I looks like you are mixing GTL (graph template language) syntax into your GCHART syntax. Also, the ODS GRAPHICS statement applies only to GTL and SG procedure output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To change the size of GCHART output, you should use the XPIXELS and YPIXELS (or HSIZE and VSIZE) options on the GOPTIONS statement.&amp;nbsp;To do imagemaps in SAS/Graph, you have to create a column in your data that contains the correct HTML syntax for the imagemap. Then, refer to that variable using the HTML option on the VBAR statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Reeza said, you might want to consider creating this chart using SGPLOT, as it will be a lot easier to create the imagemap. The equivalent SGPLOT code to your example would look something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics on / imagemap=on&amp;nbsp;height=3in width=3in border=off;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;title height=10pt 'FACR Generated and Recovered - Fiscal YTD' ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc sgplot&amp;nbsp;data=FACR_TotalYTD_Display noborder;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;xaxis display=(nolabel);&lt;BR /&gt;&lt;SPAN&gt;yaxis display=(nolabel);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;vbar FiscalYear / response=FACRSum group=FACRType;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;format FACRSum DOLLAR14.2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 03:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246045#M8919</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-01-26T03:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Resizing bar chart and customizing tool tip with imagemap</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246346#M8934</link>
      <description>&lt;P&gt;Thank you, this worked perfectly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 14:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Resizing-bar-chart-and-customizing-tool-tip-with-imagemap/m-p/246346#M8934</guid>
      <dc:creator>olsengf</dc:creator>
      <dc:date>2016-01-27T14:45:20Z</dc:date>
    </item>
  </channel>
</rss>

