BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Zula
Obsidian | Level 7

Hi. I want to do vline by proc sgpanel. For the colaxis, I want to display the min and max values but do the graphing by interval within the min and max (if I values=(2007 2016 ) then it shows plots only plots 2007 and 2016, but if I use values=(2007 to 2016 by 1) then each single year shows in the colaxis). How can I show 2007 and 2016 but plot each year's data?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Try 

valuesdisplay=('2007' '2008' '  '  '  '   '  '  ' '   ' 2015')

View solution in original post

4 REPLIES 4
Zula
Obsidian | Level 7

I formatted the colaxis's data but I cannot use in the proc sgpanel;

ods escapechar='~';
proc format lib=work;
value col
2007 = "~{style [color=black] 2007}"
2016 = "~{style [color=black] 2016}"
2008 = "~{style [color=white] 2008}"
2009 = "~{style [color=white] 2009}"
2010 = "~{style [color=white] 2010}"
2011 = "~{style [color=white] 2011}"
2012 = "~{style [color=white] 2012}"
2013 = "~{style [color=white] 2013}"
2014 = "~{style [color=white] 2014}"
2015 = "~{style [color=white] 2015}"
;
run;

Ksharp
Super User

Try 

valuesdisplay=('2007' '2008' '  '  '  '   '  '  ' '   ' 2015')

Zula
Obsidian | Level 7

Thank you.

But it still does not display the first and lat values.

Zula
Obsidian | Level 7

Sorry it works! I had display=(novalues) previously. Thank you so much!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 889 views
  • 1 like
  • 2 in conversation