Data visualization with SAS programming

GCHART - Grouping Charts by city (how to remove CITY=)

Reply
Frequent Contributor
Posts: 131

GCHART - Grouping Charts by city (how to remove CITY=)

Hi,

I am using GCHART to show volumes by city... so I've used City to "grouped chart by".

On top of every chart I am getting something like this

CITY=TORONTO

then my chart

CITY = NEWYORK

then my chart

how can I remove CITY= and just show the name of the city...?

Thanks

Super User
Posts: 11,121

Re: GCHART - Grouping Charts by city (how to remove CITY=)

Since there are many ways to generate the same chart examples of what you are currently doing will help us answer your question better.

SAS Employee
Posts: 980

Re: GCHART - Grouping Charts by city (how to remove CITY=)

Depending on how you're doing things ...

You'll probably use the following to suppress the default by-titles...

options nobyline;

And then you can specify your own custom title2 (without the 'CITY=') using something like ...

title2 "#byval(&city)";

Google 'nobyline' and 'byval' for more info & variations of the techniques, such as ...

http://www2.sas.com/proceedings/sugi23/Coders/p75.pdf

Super Contributor
Posts: 291

Re: GCHART - Grouping Charts by city (how to remove CITY=)

I've used label city='00'x before ...

Frequent Contributor
Frequent Contributor
Posts: 94

Re: GCHART - Grouping Charts by city (how to remove CITY=)

I had faced a similar issue while using Proc SGPANEL. I managed to solve it by using the NOVARNAME option. You can check if it works in proc gchart.

Ask a Question
Discussion stats
  • 4 replies
  • 216 views
  • 0 likes
  • 5 in conversation