04-17-2015 07:38 AM
I am successfully producing a bar chart however one of the variables within the "group" variable of my code is quite long and therefore not being fully displayed on the chart.
I am running the below code to produce the output chart (displayed below the code) however on the 3rd set of bar charts you can see that it says "3. Arab, Gypsy or Traveller & Oth" when I need to to say the full value in the field "3.Arab, Gypsy or Traveller & Other"
axis1 label=none value=none;
axis2 label=("%") ;
legend1 label=("Academic Year");
proc gchart data = chart_data (where = ( ethnic_band NE '' and
ethnic = '' and
ethnic_band in ('1.Asian',
'3.Arab, Gypsy or Traveller & Other',
vbar acad_yr / discrete
type = sum
sumvar = ugpg_headcount_PctSum_100
group = ethnic_band
subgroup = acad_yr
des = ' '
description = ' ' ;
ods rtf close;
04-17-2015 10:46 AM
For GCHART, the SPLIT option on the AXIS statement might work for you. I'm not sure of your SAS version, but SGPLOT can handle this situation as well if you have the right version. Hope this helps!