Data visualization with SAS programming

SGPLOT Bar Chart Axis and Chart Border Colors

Accepted Solution Solved
Reply
Super Contributor
Posts: 302
Accepted Solution

SGPLOT Bar Chart Axis and Chart Border Colors

Good Evening All,

 

I have generated a bar chart similar to the one pictured below using SGPLOT (9.4m4).  I have 2 questions regarding the outcomes:

 

1.  Is there a way to remove or change the color of the border around the graph? 

2.  Can the Axis color be changed?

 

I have been able to customise the rest of the graph successfully, but this has me stumped.

 

Thank you for your help.

 

BarChartFreq.png

 

 

 


Accepted Solutions
Solution
3 weeks ago
Super User
Super User
Posts: 9,211

Re: SGPLOT Bar Chart Axis and Chart Border Colors

Posted in reply to Scott_Mitchell

All Replies
Solution
3 weeks ago
Super User
Super User
Posts: 9,211

Re: SGPLOT Bar Chart Axis and Chart Border Colors

Posted in reply to Scott_Mitchell

Noboder option:

https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/SGPLOT-How-to-remove-the-border-on-a-graph...

 

As for axis color, then you need to change the style either via template or by using the style command:

There are plenty of examples over at:

https://blogs.sas.com/content/graphicallyspeaking/

E.g

https://blogs.sas.com/content/graphicallyspeaking/2014/12/17/dual-response-axis-graphs/

Super Contributor
Posts: 302

Re: SGPLOT Bar Chart Axis and Chart Border Colors

@RW9, thank you very much for your insight.

 

I spent so much time looking for an option for SGPLOT, that I completely neglected to investigate an option for ODS.

 

Thank you again

☑ This topic is solved.

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

Discussion stats
  • 2 replies
  • 96 views
  • 0 likes
  • 2 in conversation