BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidPhillips2
Rhodochrosite | Level 12

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;

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
DavidPhillips2
Rhodochrosite | Level 12

answered in

djrisks
Barite | Level 11

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

E-L-I-10
Calcite | Level 5

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)

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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