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

Hi Forum,

 

I've had a couple of goes at creating this Stacked Bar (with 2 values) and Line combo graph but am having the following issues.

 

Attempt 1. I use the Customer graph builder & drag in a Bar graph & a Line Graph, 

Then I try to add another measure for the bar graph so I can add the second measure to the bar stack.

Issue - I can't change the Stack to normalise to 100%

 

Attempt 2. I drag 2 bar graphs into the design plus a Line graph,

Then I format the 2 bar graphs as I need & find that I can't use a stacked bar.

 

Can someone give me a step by step way to achieve this?

 

I've looked at the User Guide but m still stuck.

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
OscarBoots1
Quartz | Level 8

Thanks Bruno,

 

That worked perfectly!

 

Next step is to change the colours of the Stacked bar for the 2 categories I have.

 

In the design of the Custom graph, I have selected black as mthat is one of the colours needed,

 

My attempts to get the other colour (Red) haven't succeeded.

 

How can I select a part of the stack & apply a colour?

 

Thanks again!

 

Peter

View solution in original post

6 REPLIES 6
BrunoMueller
SAS Super FREQ

Bar charts support more than one measure by default. so there is no need to add another measure.

 

The grouping scale "normalize groups to 100%" can be set once you use your custom graph.

 

Should it look like this?

Snap11.png

OscarBoots1
Quartz | Level 8

Thanks Bruno, that's exactly what I'm after!

 

I found that if I used 1 Bar Graph & then added a Line I got the message like "Layering another chart would make the chart unable to normalise to 100%"

 

So, if I follow you, these are the steps you took.

 

1. Go to Custom Cart, right click & select edit custom graph

2. Add a Bar graph to the design area

3. Add a Line graph to the design area

4. Save the chart & use in the report builder as normal.

 

Is this correct & do I need to change any other settings?

 

Thanks for your help.

 

Peter

BrunoMueller
SAS Super FREQ

Yes these are the steps

 

  1. create new custom graph
  2. add bar chart, set grouping style to stacked
  3. add line chart, set y axis to be on the right
  4. save
  5. use in the report, set grouping scale accordingly
OscarBoots1
Quartz | Level 8

Thanks Bruno,

 

I'll try this on Monday, so in 2 days time I'll come back tp you.

 

Appreciate your time.

 

Peter 

OscarBoots1
Quartz | Level 8

Thanks Bruno,

 

That worked perfectly!

 

Next step is to change the colours of the Stacked bar for the 2 categories I have.

 

In the design of the Custom graph, I have selected black as mthat is one of the colours needed,

 

My attempts to get the other colour (Red) haven't succeeded.

 

How can I select a part of the stack & apply a colour?

 

Thanks again!

 

Peter

OscarBoots1
Quartz | Level 8
Hi Forum, I have some more info about colouring the Columns and I found it was really a trial & error process to get the colours I wanted. Particularly for a stacked Column, I found I was changing some random settings, then changing the Data Colour under the Styles tab. Sometimes it worked but usually din't so I spent quite some time getting the colours I needed.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 6 replies
  • 3385 views
  • 0 likes
  • 2 in conversation