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.
What does your code look like now?
I haven't the code. I want to know if i can ricreate it in the graph builder.
@chiara3 are you using SAS Foundation or SAS Visual Analytics?
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
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!