BookmarkSubscribeRSS Feed
chiara3
Calcite | Level 5

Hi guys, 

i need help recreating a graph in SAS viya.

i'd like to create a graph similar to the one in the picture. You can see a scutter plot with two line representing the average value of the data, one for x axis and one for y. In partiular, I would like that the value of the average won't be set, but a measure that changes with different filters on data. it's possible?

 

I was only able to create a graph with the two lines fixed, using only the scutter plot.

 

thanks in advance.

 

Risultati immagini per custom scatter plot graph sas

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

What does your code look like now?

chiara3
Calcite | Level 5

I haven't the code. I want to know if i can ricreate it in the graph builder.

Reeza
Super User

@chiara3 are you using SAS Foundation or SAS Visual Analytics?

BrunoMueller
SAS Super FREQ

There is currently no way to have dynamic references lines.

 

You could mimic something similar using a custom graph combining a scatter plot plus two vector plots for the "reference lines".

You need to add aggregated measures so that you get the values for the vector plots, you need the median, min and max values.

 

See screenshot of a simple example

Capture.PNG

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 4 replies
  • 1398 views
  • 0 likes
  • 4 in conversation