I did a test and it seems that 200 is the limit for Gchart with discrete VBAR.
The Needleplot doesn't have a limit though the display size may mean that there isn't much visible space between the vertical lines.
Here is a very brief example:
data needle;
do xvar = 1 to 400;
yvar = abs(200-xvar);
output;
end;
run;
ods graphics on;
proc sgplot data=needle;
needle x=xvar y=yvar /
;
run;
ods graphics off;
Needleplot would require presummarizing data but I seldom used gchart to do the summaries anyway as I often needed to provide tables as well as charts.
As the error says include LEVELS=ALL in the options to the VBAR.
For legibility you may need to increase the space available for your graphics output.
Alternatively you might investigate PROC SGPLOT with a NEEDLEPLOT though that might require presummarizing the data before plotting.
I did a test and it seems that 200 is the limit for Gchart with discrete VBAR.
The Needleplot doesn't have a limit though the display size may mean that there isn't much visible space between the vertical lines.
Here is a very brief example:
data needle;
do xvar = 1 to 400;
yvar = abs(200-xvar);
output;
end;
run;
ods graphics on;
proc sgplot data=needle;
needle x=xvar y=yvar /
;
run;
ods graphics off;
Needleplot would require presummarizing data but I seldom used gchart to do the summaries anyway as I often needed to provide tables as well as charts.
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.