BookmarkSubscribeRSS Feed
TimH
Quartz | Level 8

I have data which is recorded over time.   I've been using NEEDLE charts,  I wasn't sure about BAND but it now looks like I could possibly use that instead.   I need the needle or band to be a different color for each shift, so that it is visually possible to differentiate the shift the data is f

The dataset has a SHIFT variable, a TIMESTMP variable which has the start time of the interval when the measurement was taken, and the measurement. 

I've read about attribute datasets, which seems like what I need for this - but would I need to create an entry for each TIMESTMP and use TIMESTMP as the ATTRID?   Can I use SHIFT as the ATTRID instead, even though it's not in the chart?

5 REPLIES 5
TimH
Quartz | Level 8

I should add that I had "okay" results by splitting the measurement variable into pieces, and setting one of the pieces to the value and the other to missing, then plotting all the variables on the same graph with different color attributes.   That worked for NEEDLE but not for BAND which stretched the bands across the intervals with missing values.

ballardw
Super User

Can you post an image of what this should look like?

TimH
Quartz | Level 8

This is it done with the splitting technique and NEEDLE chart...  I removed the 4-hour average SERIES to make this look clearer I think it would look better with BAND, maybeMSU Chart

ballardw
Super User

I get a communications error trying to view the example. By any chance is the lin to an intranet that's restricted?

TimH
Quartz | Level 8

I didn't realize that would create a link. Uploading it this time.Sample_ Chart.png

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1839 views
  • 0 likes
  • 2 in conversation