BookmarkSubscribeRSS Feed
Paololo
Calcite | Level 5

Good evening,

my need, which I have not solved at the moment, is to create a vertical bar graph with the Y-axis in logarithmic scale since I have three measures to represent that have a very different scale between them.
 
I cannot use the bar graph with 2 axes because it seems not to accept the use of 3  measures.
 
 
Below I report the graph that I would like to create in Viya:
 
Paololo_0-1743017529468.png

 

 
In SAS viya with bar chart it seems impossible to regulate Y axis scale with 3 measures:
 
 
Paololo_1-1743017529469.png

 

 
how can i solve it?
 
Kind regards
Paolo
 
7 REPLIES 7
KeithM
SAS Employee

Have you tried building a custom graph consisting of three bar charts.   Below is an example with three measures.

 

Screenshot 2025-03-26 at 4.00.45 PM.png

Paololo
Calcite | Level 5
No, but the problem is that I have to represent three measures with different scales. You are representing measures with approximately the same scale. In my case the bar of the smallest measure is not even visible in bar chart and I can not change the values in Y axis
Madelyn_SAS
SAS Super FREQ

For your bar chart, the only other option would be to set a fixed Y axis so that you can accommodate the measure with the lowest values. 

KeithM
SAS Employee

I see why the customer graph will not work because you can only edit one y axis.

 

Screenshot 2025-03-26 at 4.31.48 PM.png

Paololo
Calcite | Level 5
In custom graph is it possible to edit Y-axis to show grid of values ​​like 10, 100, 1000, 10000, 100000 on the chart?
Madelyn_SAS
SAS Super FREQ

UPDATE: Researching a bit more, the log scale is available in Viya 4 for these graphs:

  • A new Logarithmic scale option is available for scatter plots, time series plots, line charts, forecasting objects, and numeric series plots.

Prior to that, only normalization is available. 

Madelyn_SAS_0-1743019415444.png

 

KeithM
SAS Employee

For the Custom Graph, if you don't overlay the bar charts then it does provide an option for different y axis.

Screenshot 2025-03-26 at 4.52.19 PM.png

Screenshot 2025-03-26 at 4.52.19 PM.png

Screenshot 2025-03-26 at 4.56.02 PM.png

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 989 views
  • 0 likes
  • 3 in conversation
OSZAR »