Creating a Horizontal Bar Chart without Statistics - SAS Programming

You can use HBAR options to specify individual statistics to produce (FREQ, CFREQ, PERCENT, CPERCENT) or choose to omit all of the frequency statistics by specifying the NOSTATS option.These options are separated from the statement to which they apply by a slash (/). If you want a horizontal bar chart with no statistics,code the following:

Example

PROC CHART DATA-SALES?
TITLE 'Horizontal Bar Chart without Statistics';
HBAR REGION / NOSTAT;
RUN?

Output from Example - Creating a Horizontal Bar Chart without Statistics

Output from Example - Creating a Horizontal Bar Chart without Statistics

Notice that when statistics are not included in the output,the horizontal scale is adjusted to fill out the page.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SAS Programming Topics