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

I am creating a weighted Pareto chart using Proc Pareto with the vertical axis scale=weight.  I've tried limiting the values on the vertical axis using vaxis but I keep getting an error that says "The FREQAXIS= list does not cover the range of the bars."  Looking at both my data and the values given if I include barlabel = value, my largest value is around 200K and I'm putting my largest vaxis value at 500K, so I don't understand why I'm getting this error.

 

Would someone be able to explain to me?  Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BuckyRansdell
SAS Employee

The problem here involves the scaling of the primary vertical axis, which measures the bars, and the secondary vertical axis, which measures the cumulative percent curve.  By default. the leftmost point on the curve is attached to the top of the leftmost bar.  The log message here is misleading.  The real problem is that if you limit the primary axis range then the there is not enough vertical space to line up the axes so that the curve is anchored at the top of that bar.

 

There are at least two ways to get around this.  If you don't care about having the cumulative percent curve on your chart, you can specify the NOCURVE option.  Otherwise, you can use the AXISFACTOR= option to specify the ratio of the primary axis length to the height of the tallest bar.  In fact, if you're using the VAXIS= option to try to make the bars taller, you can use the AXISFACTOR= option instead.

View solution in original post

1 REPLY 1
BuckyRansdell
SAS Employee

The problem here involves the scaling of the primary vertical axis, which measures the bars, and the secondary vertical axis, which measures the cumulative percent curve.  By default. the leftmost point on the curve is attached to the top of the leftmost bar.  The log message here is misleading.  The real problem is that if you limit the primary axis range then the there is not enough vertical space to line up the axes so that the curve is anchored at the top of that bar.

 

There are at least two ways to get around this.  If you don't care about having the cumulative percent curve on your chart, you can specify the NOCURVE option.  Otherwise, you can use the AXISFACTOR= option to specify the ratio of the primary axis length to the height of the tallest bar.  In fact, if you're using the VAXIS= option to try to make the bars taller, you can use the AXISFACTOR= option instead.

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1328 views
  • 2 likes
  • 2 in conversation