Exploring, modeling, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Stacked and grouped bar chart

Reply
Occasional Contributor
Posts: 11

Stacked and grouped bar chart

Hi all,

With SAS Base I created in the past a graph that has grouping at the x-axis and is stacked. See printscreen below.

Did anyone create a custom grapfh like this?

Thanks for your reactions,

Michel de Kooter

New Bitmap Image.bmp

SAS Employee
Posts: 3

Re: Stacked and grouped bar chart

Hi Michel

Is your bar stack a stacked group or stacked multi-response? Here is an example I created using the Bar Chart graph object in VA Designer. This object stacks group values. Is this what you are looking for?

Thanks.
Ravi Devarajan

stacked bar with column grouping.png

Occasional Contributor
Posts: 11

Re: Stacked and grouped bar chart

Hi Ravi,

Thanks for your response. I think this is exactly what I want.

The graph is stacked group. 2 Groups: by month and year, one stack by product type.

Could you sent print screens how you did it?

Michel

SAS Employee
Posts: 3

Re: Stacked and grouped bar chart

Hi Michel

Here are the steps to do what I posted earlier. I am using VA6.4. You could do this with VA6.3 as well.

Please let me know if you need further clarifications.

Thanks

Ravi

Step 1: DND Bar Chart graph object from left side pane in VAD

step 1.png

Step 2: Load your data

Step 3: In Roles tab on right pane in VAD, assign your appropriate data columns to the graph object roles, as I have done below. In my case, Lattice columns was a Date item but it could be a Category item as well.

step 2.png

Step 4: In Properties tab on right pane, set Grouping style to Stack under Bar Properties

step 4.png

This should give you the desired result.

step 5.png

Occasional Contributor
Posts: 11

Re: Stacked and grouped bar chart

Hi Ravi,

This works perfect. I didn't get the lattice working properly, but not it works very good.

Thanks for your assistence.

Michel

SAS Employee
Posts: 3

Re: Stacked and grouped bar chart

Good to hear Michel, and good luck with your project.

Ravi

Regular Learner
Posts: 1

Re: Stacked and grouped bar chart

Hi all,

 

Sorry to return to this old topic. I have a question can be a little bit credulous.
I created a stacked histogram and i need to display label for each group on the histogram. This works fine with a cluster grouping style but not with a stacked one.

Did Did anyone has an idea on how do this ?

 

Thank you.

 

Bayex

Post a Question
Discussion Stats
  • 6 replies
  • 1944 views
  • 1 like
  • 3 in conversation