Data visualization with SAS programming

SGPlot & formatting of datalabels

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 126
Accepted Solution

SGPlot & formatting of datalabels


Is it possible to format datalabels in SGplot? I've got a bar char with datalabels and would like to format them comma6.

Thanks,

Brian Adams


Accepted Solutions
Solution
‎06-06-2013 01:14 PM
Super User
Posts: 11,121

Re: SGPlot & formatting of datalabels

try adding a

Format variablname comma6.;

to the proc and see.

Generally works for me.

View solution in original post


All Replies
Solution
‎06-06-2013 01:14 PM
Super User
Posts: 11,121

Re: SGPlot & formatting of datalabels

try adding a

Format variablname comma6.;

to the proc and see.

Generally works for me.

Frequent Contributor
Posts: 126

Re: SGPlot & formatting of datalabels

Who woulda thunk

Thanks,

Super User
Posts: 11,121

Re: SGPlot & formatting of datalabels

And you can use Label varname = 'Temporarily different variable label'; as well.

Frequent Contributor
Posts: 102

Re: SGPlot & formatting of datalabels

I think SGPlot respects the format of the variable in the dataset--if you have your x-variable formatted as comma., then it will show up with commas for each 1,000

Frequent Contributor
Posts: 126

Re: SGPlot & formatting of datalabels

Thanks again!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 1372 views
  • 3 likes
  • 3 in conversation