Data visualization with SAS programming

Resizing gcharts Loses Inside Statistic

Accepted Solution Solved
Reply
Super Contributor
Posts: 497
Accepted Solution

Resizing gcharts Loses Inside Statistic

I am trying to make my display smaller.  I noticed that when I resize bar charts made with gchart that the inner statics are lost.  Is there a way to resize a barchart without losing the statistic?  I am using

goptions reset=all device=gif hsize=3in vsize=3in noborder;

I am guessing this has to do with the device that the gchart is rewritten to.  Any ideas on how I can keep the tooltip and inner statistic features?

I also noticed that gcharts do not respond to ods tagset panels like other graphs do.

ods tagsets.htmlpanel event = panel(start); /*doesn’t work on gchart*/

Basic code is below:

goptions reset=all device=gif hsize=3in vsize=3in noborder;

  proc gchart data=enrollment;

  vbar TWO_DIGIT_YEAR /

  width=3

  type=sum

  inside=subpct

  sumvar=STUDENTS_ENROLLED

  subgroup=Status

  discrete

  gaxis=axis1 maxis=axis2 raxis=axis3;

  run; Quit;


Accepted Solutions
Solution
‎12-18-2014 02:29 PM
Super Contributor
Posts: 497

Re: Resizing gcharts Loses Inside Statistic

Posted in reply to DavidPhillips2

All Replies
Solution
‎12-18-2014 02:29 PM
Super Contributor
Posts: 497

Re: Resizing gcharts Loses Inside Statistic

Posted in reply to DavidPhillips2

answered in

Super Contributor
Posts: 256

Re: Resizing gcharts Loses Inside Statistic

Posted in reply to DavidPhillips2

It may be better to do this using BARCHARTPARM and SCATTERPLOT in GTL.

New Contributor
Posts: 2

Re: Resizing gcharts Loses Inside Statistic

Posted in reply to DavidPhillips2

I am having a similiar issue resizing static Web pages generated using ODS HTML.  The wrinkle is that I am adding an annotation to the x-axis on a GCHART.  When resized the inner chart shrinks and moves away from the annotation.  The only solution is to refresh the report, but that isn't practical. Any idea how to fix this? ( device=activex in Goptions, but maybe this is wrong)

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 575 views
  • 3 likes
  • 3 in conversation