I use the proc gchar with this code:
Ods tagsets.nostyle body=_webout path=&_tmpcat (url=&_replay) rs=none ;
Goptions reset =all
border
device =actximg;
Goptions xpixels =800;
Goptions colors=(cxE8FFE8);
Goptions htext =12pt;
Title1 "Presupuesto";
/* Desvío sobre el Presupuesto */
Proc Gchart Data = Flistado_Graf_01_SegBac;
Format Importe Commax20.3;
Label Importe = "Desvío sobre el Presupuesto: &Combo_Epigr_Des";
Label Concepto = "Segmento";
Hbar3d Concepto / sumvar=Importe Outside=Sum width=20 space=5 descending;
Run;
Proc Gchart Data = Flistado_Graf_02_Dibaco;
Format Importe Commax20.3;
Label Importe = "Desvío sobre el Presupuesto: &Combo_Epigr_Des";
Label Concepto = "Director";
Hbar3d Concepto / sumvar=Importe Outside=Sum width=20 space=5 descending ;
Run;
BUT DON'T DRAW The TITLE "Presupuesto" in the chart: WHY????
Hi: I am not sure about "TAGSETS.NOSTYLE" and what kind of output it is creating. Or why you are using a custom tagset template. And, it is impossible to tell what application you need to use to open this file (a browser, Word??).
The bottom line is that most ODS destinations would need the GTITLE option or the NOGTITLE option to control whether the title goes into the image created by GCHART (GTITLE) or whether the title goes into the "wrapper" file (NOGTITLE).
So without a better understanding of TAGSETS.NOSTYLE it is impossible to comment further. I am running SAS 9.4 M3 and I do not have TAGSETS.NOSTYLE in the production template store, so this must be a user-defined destination tagset.
Perhaps you need to work with Tech Support on this so they can look at ALL of your code.
cynthia
Hi: I am not sure about "TAGSETS.NOSTYLE" and what kind of output it is creating. Or why you are using a custom tagset template. And, it is impossible to tell what application you need to use to open this file (a browser, Word??).
The bottom line is that most ODS destinations would need the GTITLE option or the NOGTITLE option to control whether the title goes into the image created by GCHART (GTITLE) or whether the title goes into the "wrapper" file (NOGTITLE).
So without a better understanding of TAGSETS.NOSTYLE it is impossible to comment further. I am running SAS 9.4 M3 and I do not have TAGSETS.NOSTYLE in the production template store, so this must be a user-defined destination tagset.
Perhaps you need to work with Tech Support on this so they can look at ALL of your code.
cynthia
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.