Data visualization with SAS programming

How to change the appearance of values in the chart using proc sgplot?

Accepted Solution Solved
Reply
Super Contributor
Posts: 426
Accepted Solution

How to change the appearance of values in the chart using proc sgplot?

I'm able to generate the below chart using the following code. However, I want to bold all the values (e.g. all the numbers in the chart, Date_Week,ticket_count) in the chart. Appreciate if someone of you help me.

 

ods rtf body='/sasuser/Date_Weekly_Reporting.rtf' rs=none style=RTFBLUE;

proc sgplot data=chart;
	title 'count of Tickets by Date_Week';
	vbar Date_Week / response=Ticket_Count datalabel=Ticket_Count group=Resolved_by groupdisplay=cluster;
	label Resolved_by='L2/L3';
	run;

ods rtf close;

Bar chart.png


Accepted Solutions
Solution
4 weeks ago
PROC Star
Posts: 552

Re: How to change the appearance of values in the chart using proc sgplot?

Add

 

datalabelattrs=(Weight=Bold)

to your vbar options (after the / ).

 

You can see what else you can control with this option in the documentation below

 

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0p7vdd69sgf3wn...

View solution in original post


All Replies
Solution
4 weeks ago
PROC Star
Posts: 552

Re: How to change the appearance of values in the chart using proc sgplot?

Add

 

datalabelattrs=(Weight=Bold)

to your vbar options (after the / ).

 

You can see what else you can control with this option in the documentation below

 

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0p7vdd69sgf3wn...

☑ This topic is SOLVED.

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

Discussion stats
  • 1 reply
  • 115 views
  • 0 likes
  • 2 in conversation